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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ecx]
push ebx
push esi
mov esi, dword [ecx + 8]
mov ebx, edx
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0xc]
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], eax
nop dword [eax]
cmp dword [ebx], 0
je 0x48e261
cmp dword [ebx + 0x1c], edx
je 0x48e261
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x48e250
mov dword [esp + 0xc], ebx
test edx, edx
je 0x48e5bc
cmp dword [ebp + 0x10], eax
je 0x48e5bc
mov eax, dword [ebp + 8]
test byte [eax + 0x1c], 0x80
jne 0x48e363
mov al, byte [ecx + 0x13]
test al, al
jne 0x48e292
inc dword [ecx + 0x2c]
mov edi, dword [ecx + 0x2c]
jmp 0x48e2a1
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov edi, dword [ecx + eax*4 + 0x98]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x48e2c0
push 0
push edi
push dword [ebp + 0x10]
mov edx, 0x8c
mov ecx, esi
call fcn.0042a9a0
add esp, 0xc
jmp 0x48e2ee
mov edx, dword [ebp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x8c
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [esp + 0x14]
cmp dword [esi + 0x78], ecx
jg 0x48e30f
push edi
push 0
push edx
mov edx, 0x20
mov ecx, esi
call fcn.0042a9a0
add esp, 0xc
jmp 0x48e33a
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
test edi, edi
je 0x48e5bc
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + 0x13]
cmp al, 8
jae 0x48e5bc
movzx eax, al
mov dword [ecx + eax*4 + 0x98], edi
inc byte [ecx + 0x13]
jmp 0x48e5bc
mov edi, dword [eax + 8]
test edi, edi
je 0x48e380
nop word [eax + eax]
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
je 0x48e380
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x48e370
movzx eax, word [edi + 0x32]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x1c], 0
lea ebx, [eax + 1]
add eax, dword [esp + 0x18]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0xc]
mov dword [ecx + 0x2c], eax
jbe 0x48e46d
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
je 0x48e3f5
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x1c]
movzx eax, word [eax + ebx*2]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
nop word [eax + eax]
mov ebx, dword [esp + 0x30]
cmp bx, word [eax]
mov ebx, dword [esp + 0xc]
je 0x48e41c
inc ecx
add eax, 2
cmp ecx, edx
jl 0x48e3e0
or eax, 0xffffffff
mov ecx, dword [esi + 0x74]
movsx edx, ax
cmp dword [esi + 0x78], ecx
jg 0x48e421
push dword [esp + 0x10]
mov ecx, esi
push edx
push dword [ebp + 0x10]
mov edx, 0x5c
call fcn.0042a9a0
add esp, 0xc
jmp 0x48e453
movzx eax, cx
jmp 0x48e3f8
mov ebx, dword [ebp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0xc]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x10]
inc eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x18]
jl 0x48e3b8
mov edi, dword [esi + 0x74]
mov edx, dword [esp + 0x14]
cmp dword [esi + 0x78], edi
jg 0x48e493
push dword [esp + 0x20]
mov ecx, esi
push 0
push edx
mov edx, 0x1f
call fcn.0042a9a0
add esp, 0xc
mov edi, eax
jmp 0x48e4c2
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
jne 0x48e4dd
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
mov edx, dword [esp + 0x18]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
mov edx, dword [esi + 0x74]
cmp dword [esi + 0x78], edx
jg 0x48e4fe
push 0
push 2
push 0xb
mov edx, 0x45
mov ecx, esi
call fcn.0042a9a0
add esp, 0xc
mov edx, eax
jmp 0x48e535
mov ebx, dword [esp + 0xc]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0xb
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x53], 0
je 0x48e54f
push str.corrupt_database
or edx, 0xffffffff
call fcn.0042b470
add esp, 4
jmp 0x48e587
test edx, edx
jns 0x48e557
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x48e57c
push 0xffffffffffffffff
push str.corrupt_database
mov edx, eax
mov ecx, esi
call fcn.0042b6e0
add esp, 8
jmp 0x48e587
mov dword [eax + 0x10], str.corrupt_database
mov byte [eax + 1], 0xff
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov edx, dword [esi + 0x74]
test edi, edi
jns 0x48e5a1
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
je 0x48e5b0
mov eax, 0x4edf68
jmp 0x48e5b9
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push 0
mov edx, dword [edx + 0x20]
call fcn.00443e90
mov dword [esp + 0x34], eax
xor ecx, ecx
mov eax, dword [ebp + 8]
add esp, 4
xor edi, edi
cmp cx, word [eax + 0x22]
jge 0x48e65e
xor ebx, ebx
mov eax, dword [eax + 4]
cmp byte [ebx + eax + 8], 0x45
jne 0x48e648
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax + 0x24]
add edx, edi
cmp dword [esi + 0x78], ecx
jg 0x48e615
push 0
push 0
push edx
mov edx, 0x55
mov ecx, esi
call fcn.0042a9a0
add esp, 0xc
jmp 0x48e648
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 8]
inc edi
add ebx, 0x10
movsx eax, word [eax + 0x22]
cmp edi, eax
mov eax, dword [ebp + 8]
jl 0x48e5e4
mov ebx, dword [esp + 0xc]
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x48e677
mov ecx, dword [esp + 0x24]
push 0
push 0
call fcn.00443850
add esp, 8
jmp 0x48e679
xor eax, eax
mov edx, dword [ebx + 8]
push ebx
push 0
push 0
push 2
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push 0
call fcn.00443cb0
mov edx, dword [esp + 0x4c]
add esp, 8
mov ecx, dword [esp + 0x3c]
push eax
call fcn.0048aa40
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret