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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], edx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
lea eax, [edi + 0x20]
mov dword [esp + 0x10], eax
cmp ebx, 2
jae 0x4283b4
xor ecx, ecx
jmp 0x4283ed
mov eax, 0xcccccccd
lea esi, [ebx - 2]
mul dword [edi + 0x24]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x4da850]
lea ecx, [edi + 0x20]
sub esi, edx
xor edx, edx
div dword [ecx]
xor ecx, ecx
dec eax
cmp esi, eax
lea eax, [edi + 0x20]
mov dword [esp + 0x10], eax
sete cl
add ecx, 2
add ecx, esi
cmp ecx, ebx
je 0x428737
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [0x4da850]
div dword [ecx]
inc eax
cmp ebx, eax
je 0x428737
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x24]
bswap eax
test eax, eax
jne 0x428431
mov eax, 0x65
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov edx, ebx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00424fc0
add esp, 8
test eax, eax
jne 0x42879b
mov eax, dword [esp + 0x1c]
cmp al, 1
jne 0x42848c
push 0x4d6ad4
push 0xf747
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00412760
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
cmp al, 2
jne 0x42851f
cmp dword [ebp + 0xc], 0
jne 0x428799
push 1
lea eax, [esp + 0x28]
mov ecx, edi
push ebx
push eax
lea edx, [esp + 0x18]
call fcn.0042a9e0
add esp, 0xc
test eax, eax
jne 0x42879b
mov edx, dword [esp + 0xc]
test edx, edx
je 0x42873d
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x428513
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x42873d
mov ecx, edx
call fcn.0041a3d0
jmp 0x42873d
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xc8]
call eax
add esp, 0x10
test eax, eax
jne 0x42879b
mov ecx, dword [esp + 0x38]
mov esi, dword [ecx + 8]
mov dword [esp + 0xc], esi
cmp ebx, dword [esi + 4]
je 0x428569
mov eax, dword [ecx + 4]
cmp ebx, 1
mov dword [esi + 0x38], eax
setne al
mov dword [esi + 0x48], ecx
dec al
mov dword [esi + 0x34], edi
and al, 0x64
mov dword [esi + 4], ebx
mov byte [esi + 9], al
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [esp + 0x18]
test eax, eax
setne al
cmovne edx, ecx
dec al
mov dword [esp + 0x34], edx
and al, 2
mov dword [esp + 0x28], eax
jmp 0x42858c
mov eax, dword [esp + 0x28]
push eax
push edx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
lea edx, [esp + 0x38]
call fcn.0042a9e0
mov esi, eax
add esp, 0xc
mov dword [esp + 0x24], esi
test esi, esi
jne 0x4286b6
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x42860a
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x428603
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x30]
add esp, 0x10
jmp 0x42860a
mov ecx, edx
call fcn.0041a3d0
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x30]
test ecx, ecx
je 0x428623
mov edx, dword [esp + 0x34]
cmp eax, dword [esp + 0x18]
ja 0x428588
mov esi, dword [esp + 0xc]
mov edx, esi
push ecx
push eax
push dword [esp + 0x1c]
mov ecx, edi
push dword [esp + 0x28]
call fcn.00428130
add esp, 0x10
mov edi, eax
mov dword [esp + 0x14], edi
test esi, esi
je 0x42869a
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x428693
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x24]
add esp, 0x10
jmp 0x42869a
mov ecx, edx
call fcn.0041a3d0
test edi, edi
je 0x428737
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
test esi, esi
je 0x428721
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x42871a
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov eax, dword [esp + 0x34]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0041a3d0
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
jne 0x428799
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [0x4da850]
mov edi, dword [esp + 0x20]
div dword [ecx]
inc eax
mov dword [esp + 0xc], eax
dec ebx
cmp ebx, eax
je 0x428753
cmp ebx, 2
jae 0x428761
xor eax, eax
jmp 0x42878a
mov eax, 0xcccccccd
lea esi, [ebx - 2]
mul dword [edi + 0x24]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
sub esi, edx
lea eax, [esi + 2]
sub eax, dword [esp + 0xc]
neg eax
sbb eax, eax
add eax, 3
add eax, esi
cmp eax, ebx
mov eax, dword [esp + 0xc]
je 0x428753
mov byte [edi + 0x13], 1
mov dword [edi + 0x2c], ebx
xor eax, eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret