Function at 0x41b720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x4d625c]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x34]
push esi
mov esi, edx
xor edx, edx
push edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ebx
cmp ecx, edx
jne 0x41b787
lea eax, [edx + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0049d48e
mov esp, ebp
pop ebp
ret
movzx edx, word [eax + 0x10]
movzx ecx, byte [eax + 1]
lea edi, [ecx + edx]
cmp edi, 2
jge 0x41b7a1
mov dword [esp + 0x1c], 0
jmp 0x41b7c5
test esi, esi
jne 0x41b7ab
mov dword [esp + 0x1c], esi
jmp 0x41b7bd
cmp esi, edi
jne 0x41b7b8
mov esi, dword [ebp + 0x10]
lea esi, [edi + esi - 2]
jmp 0x41b7b9
dec esi
mov dword [esp + 0x1c], esi
mov edi, 2
sub edi, dword [ebp + 0x10]
lea esi, [edi + 1]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x1c]
sub esi, ecx
lea ecx, [esi + edi]
cmp ecx, edx
jne 0x41b7ea
movzx ecx, byte [eax + 5]
mov edx, dword [eax + 0x38]
lea ecx, [ecx + edx + 8]
mov dword [esp + 0x64], ecx
jmp 0x41b809
mov edx, dword [eax + 0x40]
lea edx, [edx + ecx*2]
movzx ecx, byte [edx + 1]
movzx edx, byte [edx]
shl edx, 8
or ecx, edx
movzx edx, word [eax + 0x12]
and ecx, edx
add ecx, dword [eax + 0x38]
mov dword [esp + 0x64], ecx
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
lea esi, [esp + edi*4 + 0x68]
push 0
push esi
mov dword [esp + 0x60], eax
call fcn.00416740
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41b9b0
mov esi, dword [esi]
movzx eax, byte [esi + 1]
add eax, dword [esp + 0x54]
movzx edx, word [esi + 0x10]
mov ecx, edi
lea eax, [eax + edx + 1]
dec edi
mov dword [esp + 0x54], eax
test ecx, ecx
je 0x41b9cc
mov esi, dword [esp + 0x5c]
movzx edx, word [esi + 0x14]
mov eax, dword [esp + 0x1c]
lea ecx, [eax + edi]
cmp ecx, edx
jne 0x41b8c7
cmp byte [esi + 1], 0
je 0x41b8c7
mov eax, dword [esi + 0x20]
movzx ebx, byte [eax]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
shl ebx, 8
mov dword [esp + edi*4 + 0x78], eax
or ebx, edx
push eax
mov eax, esi
mov dword [esp + 0x5c], ebx
call fcn.00415c60
movzx eax, ax
add esp, 4
mov dword [esp + edi*4 + 0xb4], eax
mov byte [esi + 1], 0
jmp 0x41b98f
movzx ecx, byte [esi + 1]
mov edx, dword [esi + 0x40]
sub eax, ecx
add eax, edi
movzx ecx, byte [edx + eax*2 + 1]
lea eax, [edx + eax*2]
movzx edx, byte [eax]
movzx eax, word [esi + 0x12]
shl edx, 8
or ecx, edx
and ecx, eax
add ecx, dword [esi + 0x38]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 2]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 3]
shl eax, 8
or eax, edx
mov dword [esp + 0x58], eax
push ecx
mov eax, esi
mov dword [esp + edi*4 + 0x7c], ecx
call fcn.00415c60
mov ecx, dword [esp + 0x28]
movzx eax, ax
add esp, 4
test byte [ecx + 0x16], 4
mov dword [esp + 0x34], eax
mov dword [esp + edi*4 + 0xb4], eax
je 0x41b96c
mov ebx, dword [esp + edi*4 + 0x78]
mov edx, dword [esp + 0x34]
mov eax, ebx
sub eax, dword [esi + 0x38]
add edx, eax
cmp edx, dword [ecx + 0x24]
jg 0x41c4c5
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
push ecx
add edx, eax
push ebx
push edx
call fcn.0049d5c0
sub ebx, dword [esi + 0x38]
add esp, 0xc
add ebx, dword [esp + 0x74]
mov dword [esp + edi*4 + 0x78], ebx
movzx edx, byte [esi + 1]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
sub eax, edx
push ecx
add eax, edi
push eax
call fcn.0041b190
mov ebx, dword [esp + 0x64]
add esp, 0xc
lea esi, [esp + edi*4 + 0x68]
push 0
mov eax, ebx
mov ebx, dword [esp + 0x28]
push esi
call fcn.00416740
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x41b846
lea ecx, [edi*4 + 4]
push ecx
lea edx, [esp + 0x6c]
push 0
push edx
call fcn.0049d4a0
add esp, 0xc
jmp 0x41c4fa
mov edi, dword [esp + 0x38]
lea esi, [eax + 3]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x20]
lea ecx, [eax + 0x50]
mov dword [esp + 0x18], ecx
imul ecx, edi
and esi, 0xfffffffc
lea edx, [esi + esi*2]
add ecx, eax
lea eax, [ecx + edx*2]
call fcn.00403f40
mov dword [esp + 0x28], eax
test eax, eax
jne 0x41ba09
mov dword [esp + 0x14], 7
jmp 0x41c4fa
lea eax, [eax + esi*4]
mov dword [esp + 0x20], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
movzx ecx, byte [eax + 3]
movzx eax, byte [eax + 4]
add cx, cx
add cx, cx
movzx edx, cx
mov dword [esp + 0x34], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], 0
test edi, edi
jle 0x41bc47
mov ecx, dword [esp + 0x38]
dec ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 0x20]
add ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
add ebx, dword [esp + 0x40]
mov ecx, 0x13
mov dword [esp + eax*4 + 0x84], ebx
mov eax, dword [esp + eax*4 + 0x68]
mov esi, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x4c]
mov dword [ebx + 0x38], ecx
mov edx, dword [edx + 0x20]
mov eax, dword [eax + 0x38]
push edx
push eax
push ecx
call fcn.0049d5c0
mov al, byte [ebx + 1]
movzx edi, word [ebx + 0x10]
movzx ecx, al
add esp, 0xc
add edi, ecx
test al, al
je 0x41bb2c
mov dword [esp + 0x3c], 0
test edi, edi
jle 0x41bb95
movzx eax, byte [ebx + 1]
dec eax
mov ecx, dword [esp + 0x3c]
js 0x41bad8
lea esi, [ebx + eax*2 + 0x14]
movzx edx, word [esi]
cmp edx, ecx
jg 0x41bad2
je 0x41bb26
dec ecx
sub esi, 2
dec eax
jns 0x41bac8
mov edx, dword [ebx + 0x40]
movzx eax, byte [edx + ecx*2]
lea ecx, [edx + ecx*2]
movzx ecx, byte [ecx + 1]
movzx edx, word [ebx + 0x12]
shl eax, 8
or eax, ecx
and eax, edx
add eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov dword [ecx + esi*4], eax
push eax
mov eax, ebx
call fcn.00415c60
mov edx, dword [esp + 0x24]
mov word [edx + esi*2], ax
mov eax, dword [esp + 0x40]
inc eax
inc esi
add esp, 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], eax
cmp eax, edi
jl 0x41bab9
jmp 0x41bb95
mov eax, dword [ebx + eax*4 + 0x20]
jmp 0x41baf4
mov edx, dword [ebx + 0x38]
movzx eax, word [ebx + 0x12]
movzx ecx, word [ebx + 0xc]
mov dword [esp + 0x60], edx
test edi, edi
jle 0x41bb95
mov dword [esp + 0x80], eax
lea esi, [edx + ecx]
mov dword [esp + 0x3c], edi
lea ecx, [ecx]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x30]
shl edx, 8
or ecx, edx
and ecx, dword [esp + 0x80]
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx + edi*4], eax
push eax
mov eax, ebx
call fcn.00415c60
mov edx, dword [esp + 0x24]
mov word [edx + edi*2], ax
inc edi
add esp, 4
add esi, 2
dec dword [esp + 0x3c]
mov dword [esp + 0x30], edi
jne 0x41bb50
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x50]
jge 0x41bc2c
cmp dword [esp + 0x4c], 0
jne 0x41bc2c
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
mov edx, eax
movzx eax, word [esp + edx*4 + 0xb4]
mov edx, dword [esp + edx*4 + 0x78]
mov word [ecx + esi*2], ax
mov ecx, dword [esp + 0x44]
push eax
add edi, ecx
push edx
add ecx, eax
push edi
mov dword [esp + 0x50], ecx
call fcn.0049d5c0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
movzx eax, cx
add eax, edi
mov dword [edx + esi*4], eax
mov eax, dword [esp + 0x2c]
sub word [eax + esi*2], cx
mov ax, word [eax + esi*2]
add esp, 0xc
cmp byte [ebx + 3], 0
jne 0x41bc14
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 8]
mov ecx, edx
mov edx, dword [ecx + esi*4]
mov dword [edx], eax
jmp 0x41bc27
cmp ax, 4
jae 0x41bc27
mov edx, dword [esp + 0x20]
mov ecx, 4
mov word [edx + esi*2], cx
inc esi
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x54], ecx
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x38]
jl 0x41ba55
movzx eax, word [esp + 0x34]
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x24]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
lea edx, [ecx + eax - 0xc]
mov dword [esp + 0x50], edx
xor edx, edx
xor ecx, ecx
xor eax, eax
test ebx, ebx
jle 0x41bca7
lea ecx, [ecx]
movzx esi, word [edi + edx*2]
lea eax, [eax + esi + 2]
cmp eax, dword [esp + 0x50]
jle 0x41bca2
sub eax, esi
cmp dword [esp + 0x4c], 0
mov dword [esp + ecx*4 + 0xb4], eax
mov dword [esp + ecx*4 + 0xc8], edx
je 0x41bc96
dec edx
inc ecx
xor eax, eax
cmp ecx, 4
jg 0x41bd38
inc edx
cmp edx, ebx
jl 0x41bc70
mov dword [esp + ecx*4 + 0xb4], eax
mov dword [esp + ecx*4 + 0xc8], ebx
inc ecx
mov dword [esp + 0x18], ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x10], ecx
test esi, esi
jle 0x41bd79
lea esp, [esp]
mov edx, dword [esp + esi*4 + 0xb4]
mov ebx, dword [esp + esi*4 + 0xb0]
mov eax, dword [esp + esi*4 + 0xc4]
dec eax
mov ecx, eax
sub ecx, dword [esp + 0x4c]
inc ecx
test edx, edx
je 0x41bd1a
cmp dword [ebp + 0x10], 0
jne 0x41bd5e
movzx esi, word [edi + eax*2]
mov edi, ebx
sub edi, esi
mov esi, dword [esp + 0x20]
movzx esi, word [esi + ecx*2]
sub edi, 2
lea esi, [esi + edx + 2]
cmp esi, edi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
jg 0x41bd5e
movzx ecx, word [edi + ecx*2]
movzx eax, word [edi + eax*2]
lea edx, [edx + ecx + 2]
mov ecx, 0xfffffffe
sub ecx, eax
add ebx, ecx
dec dword [esp + esi*4 + 0xc4]
jmp 0x41bcde
push 0x4c917c
push 0xde28
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00405d90
add esp, 0x10
mov dword [esp + 0x14], 0xb
jmp 0x41c4fa
mov dword [esp + esi*4 + 0xb4], edx
mov dword [esp + esi*4 + 0xb0], ebx
dec esi
mov dword [esp + 0x10], esi
test esi, esi
jg 0x41bcd0
mov eax, dword [esp + 0x68]
cmp dword [eax + 0x48], 1
ja 0x41bd8f
push 0x4c917c
push 0xde66
jmp 0x41bd42
mov edx, dword [eax + 0x38]
movzx eax, byte [edx]
xor edi, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], edi
cmp dword [esp + 0x18], edi
jle 0x41be62
mov esi, dword [esp + 0x18]
cmp edi, dword [esp + 0x38]
jge 0x41bde2
mov eax, dword [esp + edi*4 + 0x68]
mov ecx, dword [eax + 0x44]
push ecx
mov dword [esp + edi*4 + 0xb8], eax
mov dword [esp + 0x48], eax
mov dword [esp + edi*4 + 0x6c], 0
call fcn.00411850
inc dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x41be4f
cmp dword [ebp + 0x10], 0
mov eax, 1
jne 0x41bdf1
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
push 0
push eax
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.0041a070
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41c4fa
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
inc dword [esp + 0x2c]
cmp byte [ecx + 0x11], 0
mov dword [esp + edi*4 + 0xb4], eax
je 0x41be55
mov eax, dword [eax + 0x48]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x60]
mov edx, dword [edx + 0x48]
push edx
push 5
call fcn.004158f0
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x41c4fa
inc edi
cmp edi, esi
jl 0x41bdad
mov dword [esp + 0x10], edi
cmp edi, dword [esp + 0x38]
jge 0x41c01a
cmp dword [esp + 0x14], 0
mov esi, dword [esp + edi*4 + 0x68]
jne 0x41c4fa
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x34]
push eax
push ecx
mov eax, esi
call fcn.0041a890
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41c4fa
test esi, esi
je 0x41c003
mov eax, dword [esi + 0x44]
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x41bef1
dec dword [ebx + 0x78]
mov edx, dword [ebx + 0x88]
mov dword [eax + 0xc], edx
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
mov ecx, dword [eax + 4]
mov edi, dword [esi]
push ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.0049f7f0
push edx
mov edx, dword [edi + 0x48]
push eax
push esi
call edx
mov edi, dword [esp + 0x20]
add esp, 0x10
jmp 0x41bfac
dec word [eax + 0x1a]
jne 0x41bfac
mov ecx, dword [eax + 0x1c]
dec dword [ecx + 0xc]
test byte [eax + 0x18], 2
jne 0x41bf35
mov ecx, dword [eax + 0x1c]
cmp dword [ecx + 0x1c], 0
je 0x41bfac
cmp dword [eax + 0x14], 1
jne 0x41bf21
mov dword [ecx + 0x2c], 0
mov eax, dword [eax]
mov ecx, dword [ecx + 0x28]
push 0
push eax
push ecx
call dword [0x4d77a8]
add esp, 0xc
jmp 0x41bfac
mov edx, dword [eax + 0x1c]
cmp dword [edx + 8], eax
jne 0x41bf54
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41bf51
test byte [ecx + 0x18], 4
je 0x41bf51
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jne 0x41bf44
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x41bf63
mov esi, dword [eax + 0x24]
mov dword [ecx + 0x24], esi
jmp 0x41bf69
mov ecx, dword [eax + 0x24]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x24]
xor esi, esi
cmp ecx, esi
je 0x41bf7a
mov edx, dword [eax + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x41bf7f
mov ecx, dword [eax + 0x20]
mov dword [edx], ecx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov edx, dword [ecx]
mov dword [eax + 0x20], edx
cmp edx, esi
je 0x41bf94
mov dword [edx + 0x24], eax
mov dword [ecx], eax
cmp dword [ecx + 4], esi
jne 0x41bf9e
mov dword [ecx + 4], eax
cmp dword [ecx + 8], esi
jne 0x41bfac
test byte [eax + 0x18], 4
jne 0x41bfac
mov dword [ecx + 8], eax
cmp dword [ebx + 0x78], 0
jne 0x41c003
mov edx, dword [ebx + 0xdc]
cmp dword [edx + 0xc], 0
jne 0x41c003
mov al, byte [ebx + 0xf]
cmp al, 6
je 0x41bffe
test al, al
je 0x41bffe
cmp al, 2
jb 0x41bfec
mov eax, dword [0x4de2b4]
test eax, eax
je 0x41bfd8
call eax
mov eax, ebx
call fcn.00411da0
mov eax, dword [0x4de2b8]
test eax, eax
je 0x41bffe
call eax
jmp 0x41bffe
cmp byte [ebx + 4], 0
jne 0x41bffe
push 0
push 0
call fcn.0040e380
add esp, 8
call fcn.0040e220
mov dword [esp + edi*4 + 0x68], 0
inc edi
mov dword [esp + 0x10], edi
cmp edi, dword [esp + 0x38]
jl 0x41be6c
mov eax, dword [esp + 0x18]
dec eax
xor ecx, ecx
test eax, eax
jle 0x41c093
jmp 0x41c030
lea eax, [esp + ecx*4 + 0xb4]
mov dword [esp + 0x50], eax
mov eax, dword [eax]
mov esi, dword [eax + 0x48]
lea ebx, [ecx + 1]
mov dword [esp + 0x60], eax
mov edi, ecx
mov eax, ebx
cmp ebx, dword [esp + 0x18]
jge 0x41c088
mov edx, dword [esp + eax*4 + 0xb4]
mov edx, dword [edx + 0x48]
cmp edx, esi
jae 0x41c063
mov edi, eax
mov esi, edx
inc eax
cmp eax, dword [esp + 0x18]
jl 0x41c051
cmp edi, ecx
jle 0x41c088
mov eax, dword [esp + edi*4 + 0xb4]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
lea edi, [esp + edi*4 + 0xb4]
mov dword [ecx], eax
mov dword [edi], edx
mov eax, dword [esp + 0x18]
mov ecx, ebx
dec eax
cmp ecx, eax
jl 0x41c030
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + esi*4 + 0xb0]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x50], eax
mov eax, dword [eax + 0x48]
mov edx, eax
shr edx, 0x18
mov byte [ecx], dl
mov edx, eax
shr edx, 0x10
mov byte [ecx + 1], dl
mov edx, eax
xor ebx, ebx
shr edx, 8
mov byte [ecx + 2], dl
mov byte [ecx + 3], al
mov dword [esp + 0x10], ebx
cmp esi, ebx
jle 0x41c1f9
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + edi*4 + 0xb4]
push eax
call fcn.00416620
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + edi*4 + 0xcc]
add esp, 4
lea edx, [ecx + ebx*2]
push edx
lea ecx, [eax + ebx*4]
push ecx
mov edx, edi
sub edx, ebx
push edx
push esi
call fcn.0041b410
mov ebx, edi
add esp, 0x10
cmp ebx, dword [esp + 0x30]
jge 0x41c1e6
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + ebx*4]
mov edx, dword [esp + 0x20]
movzx eax, word [esp + 0x34]
mov edi, dword [esp + 0x48]
add edi, dword [esp + 0x74]
mov dword [esp + 0x18], ecx
movzx ecx, word [edx + ebx*2]
add eax, ecx
cmp byte [esi + 3], 0
jne 0x41c150
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x38]
mov edx, dword [edx]
mov dword [ecx + 8], edx
jmp 0x41c1b2
cmp dword [esp + 0x4c], 0
je 0x41c194
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + ebx*4 - 4]
dec ebx
push ecx
push esi
lea eax, [esp + 0x98]
call fcn.00415b30
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
push edx
push eax
lea ecx, [edi + 4]
mov dword [esp + 0x28], edi
call fcn.00407290
add esp, 0x10
add eax, 4
xor edi, edi
jmp 0x41c1b2
sub dword [esp + 0x18], 4
cmp ecx, 4
jne 0x41c1b2
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
push ecx
call fcn.00415c60
add esp, 4
movzx eax, ax
mov ecx, dword [esi + 0x48]
add dword [esp + 0x48], eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push edi
push edx
push ecx
mov ecx, dword [esp + 0x70]
call fcn.0041b270
add esp, 0x14
cmp dword [esp + 0x14], 0
jne 0x41c4fa
inc ebx
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x2c]
jl 0x41c0d1
test byte [esp + 0x40], 8
jne 0x41c21b
mov edx, dword [esp + 0x38]
mov eax, dword [esp + edx*4 + 0x80]
mov ecx, dword [eax + 0x38]
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 0x38]
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
cmp dword [ebp + 0xc], 0
mov esi, dword [esp + 0xb4]
je 0x41c272
mov ebx, dword [esp + 0x5c]
cmp word [ebx + 0x10], 0
jne 0x41c272
movzx edx, byte [ebx + 5]
cmp dx, word [esi + 0xe]
ja 0x41c272
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.0041b660
add esp, 4
cmp dword [esp + 0x14], 0
jne 0x41c4fa
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x34]
push ecx
push edx
mov eax, esi
call fcn.0041a890
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x41c4fa
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x11], 0
je 0x41c4fa
mov edi, dword [esp + 0x84]
movzx eax, byte [edi + 1]
mov dword [esp + 0x1c], esi
movzx esi, word [edi + 0x10]
xor ebx, ebx
add esi, eax
mov dword [esp + 0x48], eax
cmp eax, ebx
je 0x41c2a5
movzx eax, word [edi + 0x14]
jmp 0x41c2a8
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x30], ebx
jle 0x41c45d
mov dword [esp + 0x44], ebx
xor ecx, ecx
cmp ebx, esi
jne 0x41c310
cmp dword [esp + 0x4c], ecx
sete cl
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + eax*4 + 0x88]
movzx edx, word [edi + 0x10]
inc eax
mov dword [esp + 0x3c], eax
mov al, byte [edi + 1]
movzx esi, al
add edx, ecx
add esi, edx
add esi, ebx
test al, al
je 0x41c308
movzx eax, al
mov dword [esp + 0x48], eax
movzx eax, word [edi + 0x14]
add eax, ecx
add eax, ebx
mov dword [esp + 0x10], eax
jmp 0x41c30c
mov eax, dword [esp + 0x10]
cmp ebx, esi
je 0x41c2cf
cmp ebx, eax
jne 0x41c32b
mov edx, dword [esp + 0x48]
dec edx
mov ecx, 1
mov dword [esp + 0x48], edx
test edx, edx
jle 0x41c32b
inc eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x44]
cmp ebx, dword [esp + edx + 0xc8]
jne 0x41c35f
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
add edx, edx
add edx, edx
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x44], edx
mov edx, dword [esp + edx + 0xb4]
mov dword [esp + 0x1c], edx
je 0x41c452
test ecx, ecx
jne 0x41c373
mov ecx, dword [edi + 0x48]
mov edx, dword [esp + 0x1c]
cmp ecx, dword [edx + 0x48]
je 0x41c452
cmp word [esp + 0x34], 0
jne 0x41c3bf
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + ebx*4]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 0x48]
movzx eax, byte [ecx + 1]
push edx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x2c]
push 5
call fcn.004158f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov cx, word [edx + ebx*2]
mov edx, dword [esp + 0x1c]
cmp cx, word [edx + 0xa]
jbe 0x41c452
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + ebx*4]
mov dword [esp + 0x40], edx
jne 0x41c452
mov ecx, dword [esp + 0x1c]
mov eax, edx
push eax
push ecx
lea eax, [esp + 0x98]
call fcn.00415b30
mov ax, word [esp + 0xb0]
add esp, 8
test ax, ax
je 0x41c44e
movzx ecx, ax
add ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 0x48]
movzx eax, byte [ecx + 1]
push edx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x24]
shl eax, 8
or eax, ecx
mov ecx, dword [edx + 0x34]
push 3
call fcn.004158f0
add esp, 0xc
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, dword [esp + 0x30]
jl 0x41c2c2
cmp word [esp + 0x34], 0
jne 0x41c4fa
xor esi, esi
cmp dword [esp + 0x2c], esi
jle 0x41c4fa
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
lea ecx, [ecx]
mov eax, dword [esp + esi*4 + 0xb4]
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x48]
lea edx, [esp + 0x14]
push edx
movzx edx, byte [ecx + 9]
push eax
movzx eax, byte [ecx + 8]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 0xa]
movzx ecx, byte [ecx + 0xb]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
push 5
mov ecx, ebx
call fcn.004158f0
inc esi
add esp, 0xc
cmp esi, edi
jl 0x41c480
jmp 0x41c4fa
push 0x4c917c
push 0xdd9d
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00405d90
lea edx, [edi*4 + 4]
push edx
lea eax, [esp + 0x7c]
push 0
push eax
mov dword [esp + 0x30], 0xb
call fcn.0049d4a0
add esp, 0x1c
mov esi, dword [esp + 0x28]
call fcn.00404050
xor esi, esi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x38], esi
jle 0x41c693
mov eax, dword [esp + esi*4 + 0x68]
test eax, eax
je 0x41c684
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x41c56f
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
mov edi, dword [esi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.0049f7f0
push edx
mov edx, dword [edi + 0x48]
push eax
push esi
call edx
mov esi, dword [esp + 0x20]
add esp, 0x10
jmp 0x41c62d
or edx, 0xffffffff
add word [eax + 0x1a], dx
jne 0x41c62d
mov ecx, dword [eax + 0x1c]
add dword [ecx + 0xc], edx
test byte [eax + 0x18], 2
jne 0x41c5b6
mov ecx, dword [eax + 0x1c]
cmp dword [ecx + 0x1c], 0
je 0x41c62d
cmp dword [eax + 0x14], 1
jne 0x41c5a2
mov dword [ecx + 0x2c], 0
mov eax, dword [eax]
mov ecx, dword [ecx + 0x28]
push 0
push eax
push ecx
call dword [0x4d77a8]
add esp, 0xc
jmp 0x41c62d
mov edx, dword [eax + 0x1c]
cmp dword [edx + 8], eax
jne 0x41c5d5
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41c5d2
test byte [ecx + 0x18], 4
je 0x41c5d2
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jne 0x41c5c5
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x41c5e4
mov edi, dword [eax + 0x24]
mov dword [ecx + 0x24], edi
jmp 0x41c5ea
mov ecx, dword [eax + 0x24]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x24]
xor edi, edi
cmp ecx, edi
je 0x41c5fb
mov edx, dword [eax + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x41c600
mov ecx, dword [eax + 0x20]
mov dword [edx], ecx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], edi
mov edx, dword [ecx]
mov dword [eax + 0x20], edx
cmp edx, edi
je 0x41c615
mov dword [edx + 0x24], eax
mov dword [ecx], eax
cmp dword [ecx + 4], edi
jne 0x41c61f
mov dword [ecx + 4], eax
cmp dword [ecx + 8], edi
jne 0x41c62d
test byte [eax + 0x18], 4
jne 0x41c62d
mov dword [ecx + 8], eax
cmp dword [ebx + 0x78], 0
jne 0x41c684
mov edx, dword [ebx + 0xdc]
cmp dword [edx + 0xc], 0
jne 0x41c684
mov al, byte [ebx + 0xf]
cmp al, 6
je 0x41c67f
test al, al
je 0x41c67f
cmp al, 2
jb 0x41c66d
mov eax, dword [0x4de2b4]
test eax, eax
je 0x41c659
call eax
mov eax, ebx
call fcn.00411da0
mov eax, dword [0x4de2b8]
test eax, eax
je 0x41c67f
call eax
jmp 0x41c67f
cmp byte [ebx + 4], 0
jne 0x41c67f
push 0
push 0
call fcn.0040e380
add esp, 8
call fcn.0040e220
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x38]
jl 0x41c513
xor esi, esi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x2c], esi
jle 0x41c82e
mov eax, dword [esp + esi*4 + 0xb4]
test eax, eax
je 0x41c81f
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x41c702
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
mov edi, dword [esi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.0049f7f0
push edx
mov edx, dword [edi + 0x48]
push eax
push esi
call edx
mov esi, dword [esp + 0x20]
add esp, 0x10
jmp 0x41c7c8
or edx, 0xffffffff
add word [eax + 0x1a], dx
jne 0x41c7c8
mov ecx, dword [eax + 0x1c]
add dword [ecx + 0xc], edx
test byte [eax + 0x18], 2
jne 0x41c74c
mov ecx, dword [eax + 0x1c]
cmp dword [ecx + 0x1c], 0
je 0x41c7c8
cmp dword [eax + 0x14], 1
jne 0x41c735
mov dword [ecx + 0x2c], 0
mov eax, dword [eax]
mov ecx, dword [ecx + 0x28]
push 0
push eax
push ecx
call dword [0x4d77a8]
add esp, 0xc
jmp 0x41c7c8
mov edx, dword [eax + 0x1c]
cmp dword [edx + 8], eax
jne 0x41c770
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41c76d
jmp 0x41c760
test byte [ecx + 0x18], 4
je 0x41c76d
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jne 0x41c760
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x41c77f
mov edi, dword [eax + 0x24]
mov dword [ecx + 0x24], edi
jmp 0x41c785
mov ecx, dword [eax + 0x24]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x24]
xor edi, edi
cmp ecx, edi
je 0x41c796
mov edx, dword [eax + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x41c79b
mov ecx, dword [eax + 0x20]
mov dword [edx], ecx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], edi
mov edx, dword [ecx]
mov dword [eax + 0x20], edx
cmp edx, edi
je 0x41c7b0
mov dword [edx + 0x24], eax
mov dword [ecx], eax
cmp dword [ecx + 4], edi
jne 0x41c7ba
mov dword [ecx + 4], eax
cmp dword [ecx + 8], edi
jne 0x41c7c8
test byte [eax + 0x18], 4
jne 0x41c7c8
mov dword [ecx + 8], eax
cmp dword [ebx + 0x78], 0
jne 0x41c81f
mov edx, dword [ebx + 0xdc]
cmp dword [edx + 0xc], 0
jne 0x41c81f
mov al, byte [ebx + 0xf]
cmp al, 6
je 0x41c81a
test al, al
je 0x41c81a
cmp al, 2
jb 0x41c808
mov eax, dword [0x4de2b4]
test eax, eax
je 0x41c7f4
call eax
mov eax, ebx
call fcn.00411da0
mov eax, dword [0x4de2b8]
test eax, eax
je 0x41c81a
call eax
jmp 0x41c81a
cmp byte [ebx + 4], 0
jne 0x41c81a
push 0
push 0
call fcn.0040e380
add esp, 8
call fcn.0040e220
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x2c]
jl 0x41c6a3
mov ecx, dword [esp + 0xdc]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049d48e
mov esp, ebp
pop ebp
ret