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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [esp + 0x18], eax
push esi
push edi
mov esi, edx
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 0x74]
xor edi, edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], eax
call fcn.0041e610
mov eax, dword [ebx + 0x20]
mov ecx, eax
movzx edx, word [ebx + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
sub ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x24]
sub eax, edx
cmp ecx, eax
jbe 0x41e94f
push 0x54b514
push 0xfb0d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
lea eax, [edi + 0xb]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
cmp esi, edx
jae 0x41e9b3
lea eax, [esi + ebx]
mov dword [esp + 0x10], ebx
mov ecx, ebx
cmp eax, edx
jbe 0x41e96b
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push dword [eax + 0x48]
push dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea ecx, [esi + ecx]
call fcn.0041e840
mov edi, eax
add esp, 0xc
mov eax, dword [esp + 0x10]
xor esi, esi
add dword [esp + 0x20], eax
sub ebx, eax
mov dword [esp + 0x14], ebx
test edi, edi
je 0x41e9b9
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
sub esi, edx
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x41e99f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
mov edx, dword [eax + 0x24]
movzx eax, word [ecx + 0x28]
add edx, 0xfffffffc
test byte [ecx + 1], 4
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
mov ebx, dword [eax + ebx]
bswap ebx
mov dword [esp + 0x10], ebx
jne 0x41eac1
mov eax, dword [ecx + 0x24]
dec edx
sub eax, dword [esp + 0x1c]
add eax, edx
xor edx, edx
div dword [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
cmp edx, dword [ecx + 4]
jle 0x41ea5d
lea eax, [ecx + 0x14]
lea ecx, [edx*8]
mov dword [esp + 0xc], eax
push 0
push ecx
mov ecx, dword [eax]
call fcn.004055b0
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x41ea43
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea eax, [edx + edx]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
jmp 0x41ea64
add ecx, 0x14
mov dword [esp + 0xc], ecx
lea eax, [edx*4]
push eax
push 0
push dword [ecx]
call fcn.004f7f30
mov eax, dword [esp + 0x24]
add esp, 0xc
or byte [eax + 1], 4
mov eax, dword [esp + 0xc]
xor edx, edx
test ebx, ebx
je 0x41ec27
shl edx, 2
mov dword [esp + 0x1c], edx
mov eax, dword [eax]
mov dword [edx + eax], ebx
cmp esi, dword [esp + 0x24]
jb 0x41eb17
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [edx + eax + 4]
test eax, eax
je 0x41eaef
sub esi, dword [esp + 0x24]
mov ebx, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jmp 0x41ec00
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
mov dword [esp + 0x1c], edx
mov edx, eax
lea eax, [ecx + 0x14]
mov ecx, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, dword [ecx + edx*4]
test ecx, ecx
je 0x41ea84
mov esi, dword [esp + 0x1c]
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
jmp 0x41ea86
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push 0
mov edx, ebx
call fcn.0041e670
mov ebx, dword [esp + 0x18]
add esp, 8
sub esi, dword [esp + 0x24]
mov edi, eax
mov ecx, dword [esp + 0x14]
jmp 0x41ec00
mov ecx, dword [esp + 0x14]
mov edx, 2
mov edi, dword [esp + 0x24]
sub edi, esi
lea eax, [esi + ecx]
cmp eax, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmovbe edi, ecx
mov dword [esp + 0x2c], edi
mov ecx, dword [eax]
xor eax, eax
cmp dword [ebp + 0x10], eax
cmove eax, edx
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [ecx + 0xc8]
push ebx
push ecx
call eax
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41ebe8
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push eax
push dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push edi
mov ebx, dword [ecx]
add ecx, 4
bswap ebx
add ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.0041e840
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x18], eax
test edx, edx
je 0x41ebe6
test byte [edx + 0x1c], 0x20
je 0x41ebdb
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.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x3c]
add esp, 0x10
jmp 0x41ebe2
mov ecx, edx
call fcn.0040f8d0
mov eax, dword [esp + 0x18]
xor esi, esi
mov ecx, dword [esp + 0x14]
sub ecx, edi
mov dword [esp + 0x14], ecx
je 0x41e9a1
add dword [esp + 0x20], edi
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x41e99f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
add edx, 4
mov dword [esp + 0x1c], edx
test ebx, ebx
jne 0x41ea95
test ecx, ecx
je 0x41e99f
push 0x54b514
push 0xfba1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
mov ecx, dword [esp + 0x48]
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret