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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x28]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
jmp 0x48b4a4
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x48b4bc
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebp + 0x14]
je 0x48b4bc
mov eax, dword [eax + 0x10]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x48b4a0
cmp dword [ebp + 0x14], 0
je 0x48b69b
mov ecx, dword [ebp + 0x18]
cmp ecx, edx
je 0x48b69b
mov eax, dword [ebp + 0x10]
test byte [eax + 0x1c], 0x80
jne 0x48b544
mov al, byte [edi + 0x13]
test al, al
jne 0x48b4ea
add dword [edi + 0x2c], 1
mov ebx, dword [edi + 0x2c]
jmp 0x48b4f9
sub al, 1
movzx edx, al
mov byte [edi + 0x13], al
mov ebx, dword [edi + edx*4 + 0xa0]
push 0
push ebx
push ecx
push 0x8e
push esi
call fcn.0043c3f0
mov eax, dword [esp + 0x34]
add esp, 0x14
push ebx
push 0
push eax
push 0x1e
push esi
call fcn.0043c3f0
add esp, 0x14
test ebx, ebx
je 0x48b69b
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x48b69b
movzx ecx, al
mov dword [edi + ecx*4 + 0xa0], ebx
add byte [edi + 0x13], 1
jmp 0x48b69b
call fcn.00461340
mov ecx, eax
movzx ebx, word [ecx + 0x32]
mov eax, dword [edi + 0x2c]
lea edx, [eax + 1]
add eax, ebx
mov dword [edi + 0x2c], eax
xor edi, edi
test ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edx
jle 0x48b5cc
jmp 0x48b574
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x14]
movzx edx, word [edx + 0x34]
xor eax, eax
test edx, edx
jle 0x48b5a7
mov ecx, dword [ecx + 4]
movzx ebx, word [ecx + edi*2]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 4]
mov edi, edi
cmp bx, word [ecx]
je 0x48b625
add eax, 1
add ecx, 2
cmp eax, edx
jl 0x48b590
mov ebx, dword [esp + 0x10]
or eax, 0xffffffff
mov edx, dword [esp + 0x1c]
lea ecx, [edi + edx]
push ecx
movsx edx, ax
mov eax, dword [ebp + 0x18]
push edx
push eax
push 0x5e
push esi
call fcn.0043c3f0
add edi, 1
add esp, 0x14
cmp edi, ebx
jl 0x48b570
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push 0
push edx
push 0x1d
push esi
call fcn.0043c3f0
mov edi, eax
mov eax, dword [esi]
add esp, 0x14
cmp byte [eax + 0x57], 0
jne 0x48b5fd
mov edx, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], ebx
push 0
push 2
push 0xb
push 0x46
push esi
call fcn.0043c3f0
mov ecx, dword [esi]
add esp, 0x14
cmp byte [ecx + 0x57], 0
je 0x48b631
mov eax, str.corrupt_database
or edx, 0xffffffff
call fcn.0043cde0
jmp 0x48b66a
mov ebx, dword [esp + 0x10]
movzx eax, ax
jmp 0x48b5aa
test eax, eax
jge 0x48b63b
mov eax, dword [esi + 0x6c]
sub eax, 1
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x48b65f
push str.corrupt_database
or eax, 0xffffffff
mov edx, esi
call fcn.0043ced0
add esp, 4
jmp 0x48b66a
mov dword [ecx + 0x10], str.corrupt_database
mov byte [ecx + 1], 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x78]
test eax, eax
jne 0x48b676
mov eax, ecx
mov byte [eax + 0x15], 1
mov edx, dword [esi]
cmp byte [edx + 0x57], 0
mov ecx, dword [esi + 0x6c]
je 0x48b68c
mov eax, 0x4d6798
jmp 0x48b695
mov edx, dword [esi + 0x68]
lea eax, [edi + edi*4]
lea eax, [edx + eax*4]
mov edi, dword [ebp + 8]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
call fcn.004532b0
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
add esp, 0xc
cmp word [eax + 0x22], bx
jle 0x48b72f
mov dword [esp + 0x10], ebx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x10]
cmp byte [ecx + eax + 8], 0x45
jne 0x48b71c
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x24]
mov eax, dword [esi + 0x6c]
add ecx, ebx
cmp dword [esi + 0x70], eax
jg 0x48b6f5
push 0
push 0
push ecx
push 0x57
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
jmp 0x48b71c
lea edx, [eax + 1]
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x57
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, dword [ebp + 0x10]
movsx ecx, word [eax + 0x22]
add dword [esp + 0x10], 0x10
add ebx, 1
cmp ebx, ecx
jl 0x48b6c4
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x48b74e
mov edx, dword [esp + 0x18]
push 0
push 0
push eax
push edx
call fcn.00452d30
add esp, 0x10
jmp 0x48b750
xor eax, eax
mov ecx, dword [esp + 0x18]
push esi
push 2
push eax
mov eax, dword [esi + 8]
push 0
push eax
push ecx
call fcn.00453150
mov edx, dword [esp + 0x3c]
add esp, 0xc
push eax
push edx
push edi
call fcn.004882d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret