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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov byte [esp + 0x13], dl
mov eax, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov al, byte [edi]
test al, al
je 0x431ec1
cmp al, 3
jb 0x431f0a
call fcn.00427bf0
mov esi, eax
test esi, esi
jne 0x4323ed
cmp byte [edi], al
jne 0x4323ed
mov ebx, dword [edi + 0x74]
movsx eax, byte [edi + 0x44]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0x20], eax
movzx eax, word [ebx + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ebx
cmp eax, ecx
ja 0x431f34
push 0x506874
push 0x13219
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00416bb0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x506874
push 0x13210
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00416bb0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx esi, cx
and esi, eax
add esi, dword [ebx + 0x38]
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x2c], esi
jge 0x431f8a
mov ecx, ebx
call fcn.00428f60
test eax, eax
je 0x431f8a
push 0x506874
push 0x1321d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00416bb0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 0x18]
add eax, dword [ebx + 0x40]
cmp esi, eax
jae 0x431fbf
push 0x506874
push 0x13220
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00416bb0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x13]
shr al, 1
and al, 1
mov byte [esp + 0x13], al
je 0x43201d
cmp byte [ebx + 8], 0
je 0x43200c
mov eax, dword [ebx + 0x4c]
push esi
push ebx
call eax
movzx esi, ax
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x28]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
mov eax, dword [ebx + 0x14]
add eax, 2
shr edx, 1
add eax, esi
cmp eax, edx
jg 0x43200c
cmp word [ebx + 0x18], 1
je 0x43200c
mov byte [esp + 0x13], 2
jmp 0x43201d
mov ecx, edi
call fcn.004279d0
mov esi, eax
test esi, esi
jne 0x4323ed
cmp byte [ebx + 8], 0
jne 0x43205b
and byte [edi + 1], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x43204c
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x43204c
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x43204c
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x43205b
mov ecx, edi
call fcn.0042d110
test eax, eax
jne 0x4323ef
mov al, byte [edi + 1]
test al, 0x20
je 0x43208d
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x40]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x432088
cmp ecx, edi
je 0x432081
test edx, edx
je 0x432100
cmp dword [ecx + 0x40], edx
je 0x432100
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x432070
and al, 0xdf
mov byte [edi + 1], al
cmp dword [edi + 0x70], 0
jne 0x4320df
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb], 0
je 0x4320df
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x40]
mov byte [eax + 0xb], 0
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4320df
mov ebx, dword [esp + 0x14]
test byte [eax + 1], 0x10
je 0x4320d4
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x4320d4
cmp dword [eax + 0x20], edx
jne 0x4320d4
cmp dword [eax + 0x24], esi
jne 0x4320d4
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4320b8
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x43211c
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x43211c
cmp dword [edx + 0x68], 0
je 0x432149
call fcn.00421fe0
jmp 0x432141
test ecx, ecx
je 0x432088
push edi
call fcn.00427a70
add esp, 4
test eax, eax
je 0x43208d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x4323ef
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x43213c
call fcn.00423a20
jmp 0x432141
call fcn.004239a0
test eax, eax
jne 0x4323ef
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0x50]
push esi
push ebx
call eax
movzx eax, word [esp + 0x4c]
add esp, 0xc
cmp eax, dword [esp + 0x3c]
je 0x43217a
lea eax, [esp + 0x30]
mov edx, esi
push eax
mov ecx, ebx
call fcn.0042e100
add esp, 4
jmp 0x43217c
xor eax, eax
mov edx, dword [esp + 0x24]
mov ecx, ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.0042e670
mov esi, dword [esp + 0x1c]
add esp, 8
test esi, esi
jne 0x4323ed
cmp byte [ebx + 8], 0
jne 0x4322ea
mov ebx, dword [edi + 0x74]
cmp dword [ebx + 0x14], esi
jge 0x4321c8
mov ecx, ebx
call fcn.00428f60
mov esi, eax
test esi, esi
jne 0x4323ed
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x20]
dec eax
cmp ecx, eax
jge 0x4321db
mov eax, dword [edi + ecx*4 + 0x7c]
jmp 0x4321de
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 4]
movzx ecx, word [ebx + 0x18]
mov edx, dword [ebx + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx esi, cx
and esi, eax
lea eax, [edx + 4]
add esi, edx
cmp esi, eax
jae 0x432234
push 0x506874
push 0x1327b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00416bb0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x4c]
push esi
push ebx
call eax
mov ecx, dword [ebx + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x18], eax
je 0x432271
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x432271
cmp dword [edx + 0x68], 0
je 0x43229a
call fcn.00421fe0
jmp 0x432292
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x4322be
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x43228d
call fcn.00423a20
jmp 0x432292
call fcn.004239a0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4322c2
push dword [esp + 0x28]
mov eax, dword [esp + 0x30]
push dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, 4
mov ecx, dword [esp + 0x24]
push eax
lea eax, [esi - 4]
push eax
call fcn.0042e790
add esp, 0x10
mov dword [esp + 0x14], eax
movzx edx, word [ebx + 0x18]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x30]
dec edx
mov ecx, ebx
call fcn.0042e670
mov esi, dword [esp + 0x1c]
add esp, 8
test esi, esi
jne 0x4323ed
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x28]
mov eax, dword [edi + 0x74]
add ecx, ecx
mov eax, dword [eax + 0x14]
lea eax, [eax + eax*2]
cmp eax, ecx
jg 0x432303
xor esi, esi
jmp 0x432314
mov ecx, edi
call fcn.00430ec0
mov esi, eax
test esi, esi
jne 0x4323ed
movsx eax, byte [edi + 0x44]
cmp eax, dword [esp + 0x20]
jle 0x432389
mov eax, dword [edi + 0x74]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x432331
call fcn.00421990
jmp 0x432336
call fcn.0041dd10
dec byte [edi + 0x44]
mov cl, byte [edi + 0x44]
mov esi, dword [esp + 0x20]
movsx eax, cl
cmp eax, esi
jle 0x432376
movsx eax, cl
dec cl
mov eax, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], cl
test eax, eax
je 0x43236c
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x432367
call fcn.00421990
jmp 0x43236c
call fcn.0041dd10
mov cl, byte [edi + 0x44]
movsx eax, cl
cmp eax, esi
jg 0x432347
movsx eax, cl
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.00430ec0
mov esi, eax
test esi, esi
jne 0x4323ed
cmp byte [esp + 0x13], 1
jbe 0x4323cb
mov byte [edi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x24], eax
jb 0x4323bb
mov dword [edi + 4], 0xffffffff
mov ax, word [ebx + 0x18]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0042c520
cmp byte [esp + 0x13], 0
mov esi, eax
je 0x4323e5
mov ecx, edi
call fcn.00427970
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret