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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], esi
mov edi, dword [eax + 0x54]
mov eax, dword [ebp + 0xc]
push eax
call fcn.004783e0
mov ecx, dword [ebp + 0xc]
add esp, 4
mov eax, dword [ecx + 0x2c]
cmp eax, 0x80
jae 0x4933da
mov byte [edi], al
lea eax, [esi + 1]
jmp 0x4933e6
push 0
push eax
push edi
call fcn.004ad840
add esp, 0xc
movzx eax, al
add edi, eax
mov dword [ebp - 0xc], edi
cmp dword [ebx + 0x70], esi
jne 0x493407
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.004ad840
add esp, 0xc
add edi, eax
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp + 0xc]
movzx ebx, word [ecx + 0x30]
mov edx, dword [ecx + 0x28]
mov eax, dword [ecx + 0x74]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], edx
lea esi, [edx + ebx]
cmp esi, dword [eax + 0x3c]
mov esi, 0
jbe 0x49344f
push 0x55404c
push 0x122ea
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
lea eax, [esi + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x2c]
mov dword [ebp - 0x18], ecx
cmp ebx, ecx
jne 0x493486
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x74]
movzx eax, word [eax + 0xe]
cmp ebx, eax
jae 0x493486
push ebx
push edx
push edi
call fcn.005167a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
sub ebx, dword [eax + 0x54]
add ebx, edi
mov dword [eax + 0x58], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
xor esi, esi
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
xor eax, eax
xor edi, edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov eax, dword [eax + 0x74]
mov dword [ebp + 8], eax
movzx eax, word [eax + 0xe]
jg 0x4934bc
jl 0x4934b8
cmp ecx, eax
ja 0x4934bc
mov edi, ecx
jmp 0x4934f5
mov eax, dword [ebp + 8]
push 0
movzx edx, word [eax + 0x10]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x28]
sub eax, 4
sub ecx, edx
push eax
sbb edi, esi
push edi
push ecx
call fcn.004feb50
mov edx, dword [ebp + 8]
mov edi, eax
movzx eax, word [edx + 0x10]
movzx ecx, word [edx + 0xe]
add edi, eax
mov edx, dword [ebp - 4]
mov dword [ebp + 8], edi
cmp edi, ecx
jle 0x4934f8
mov edi, eax
mov dword [ebp + 8], edi
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov ebx, dword [ebp - 0x14]
sub eax, dword [ecx + 0x54]
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov dword [ebx + 0x58], eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 0x2c]
jae 0x49352e
mov edx, dword [ebp - 0x14]
lea eax, [edi + ecx]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [edx + 0x58], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jbe 0x493583
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 4]
add ecx, edx
mov eax, dword [eax + 0x74]
cmp ecx, dword [eax + 0x3c]
jbe 0x49356f
push 0x55404c
push 0x12301
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebx]
bswap eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
sub eax, edi
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x4935bc
mov esi, edi
cmp edi, ebx
jb 0x493594
mov esi, ebx
push esi
push edx
push ecx
call fcn.005167a0
mov ecx, dword [ebp - 0xc]
sub edi, esi
mov edx, dword [ebp - 4]
sub ebx, esi
add ecx, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov dword [ebp - 0x1c], ebx
add edx, esi
mov dword [ebp - 0xc], ecx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], edx
test edi, edi
je 0x49366d
test esi, esi
je 0x49361c
test byte [esi + 0x1c], 0x20
je 0x493613
mov edx, dword [esi + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [esi + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], esi
push dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004feb10
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [ebp - 0x1c]
add esp, 0x10
mov edi, dword [ebp + 8]
jmp 0x49361c
push esi
call fcn.004aaac0
add esp, 4
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x24]
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x493727
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
mov eax, dword [edx]
add edx, 4
bswap eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x14]
mov ebx, dword [eax + 0x28]
sub ebx, 4
mov dword [ebp - 0x1c], ebx
jmp 0x493678
mov eax, dword [ebp - 8]
test eax, eax
jne 0x493733
test edi, edi
jne 0x493588
cmp dword [ebp - 0x18], edi
jbe 0x493744
push edi
push edi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], edi
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
call fcn.004644d0
mov edx, dword [ebp - 0x28]
mov ecx, eax
mov esi, dword [ebp - 0x20]
add esp, 0x14
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x38]
mov eax, ecx
bswap eax
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x11], 0
je 0x4936de
test esi, esi
je 0x4936eb
lea edx, [ebp - 0x2c]
push edx
push dword [esi + 4]
push 4
push ecx
push eax
call fcn.00485790
mov eax, dword [ebp - 0x2c]
add esp, 0x14
mov dword [ebp - 8], eax
test esi, esi
je 0x4936eb
push esi
call fcn.00486e50
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x493727
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov dword [eax], 0
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edi, dword [eax + 0x28]
mov eax, dword [ebp - 0x18]
add edi, 0xfffffffc
mov dword [ebp + 8], edi
cmp edi, eax
jb 0x493730
mov edi, eax
mov dword [ebp + 8], edi
jmp 0x493730
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x18], 0
jbe 0x493744
test eax, eax
mov eax, dword [ebp - 0x18]
je 0x493583
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x493757
push eax
call fcn.00486e50
mov esi, dword [ebp - 0x10]
add esp, 4
test esi, esi
je 0x493764
push esi
call fcn.004a9b90
add esp, 4
mov esi, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret