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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1013d070]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, edx
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
mov esi, dword [eax + 0x20]
add esi, dword [eax + 0x1c]
movzx edx, word [edi + 0x30]
mov ebx, dword [edi + 0x28]
mov ecx, dword [edi + 0x74]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ecx
lea eax, [ebx + edx]
cmp eax, dword [ecx + 0x3c]
jbe 0x1004a8d4
push 0x1013747c
push 0x11264
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10032090
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret
push edx
push 0
push dword [esp + 0x20]
mov edx, ebx
call fcn.1004a6e0
add esp, 0xc
test eax, eax
jne 0x1004aa50
movzx ebx, word [edi + 0x30]
cmp ebx, esi
je 0x1004aa4e
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x28]
mov ecx, dword [ecx + 0x34]
mov edi, dword [eax + ebx]
bswap edi
mov dword [esp + 0x24], edi
mov eax, dword [ecx + 0x24]
sub eax, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
nop word [eax + eax]
mov eax, dword [ecx]
lea ecx, [esp + 0x28]
push 0
push ecx
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
test eax, eax
jne 0x1004aa50
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 8]
cmp edi, dword [esi + 4]
je 0x1004a96a
mov eax, dword [ecx + 4]
cmp edi, 1
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
setne al
dec al
mov dword [esi + 0x48], ecx
and al, 0x64
mov dword [esi + 4], edi
mov byte [esi + 9], al
mov eax, dword [esi + 0x48]
cmp word [eax + 0x1e], 1
je 0x1004a99c
push 0x1013747c
push 0x11277
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10032090
add esp, 0x14
mov dword [esp + 0x1c], 0xb
jmp 0x1004a9dd
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, ebx
cmp eax, ecx
jae 0x1004a9bb
mov eax, dword [esi + 0x38]
mov edi, dword [eax]
mov eax, dword [esp + 0x10]
bswap edi
mov dword [esp + 0x24], edi
jmp 0x1004a9c3
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x38]
mov ecx, esi
push eax
push ebx
push dword [esp + 0x20]
add edx, 4
call fcn.1004a6e0
add esp, 0xc
mov dword [esp + 0x1c], eax
mov edx, dword [esi + 0x48]
test edx, edx
je 0x1004aa30
test byte [edx + 0x1c], 0x20
je 0x1004aa29
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.100af620
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x1004aa30
mov ecx, edx
call fcn.10038a10
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1004aa50
add ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x20]
jl 0x1004a920
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret