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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov eax, dword [ebx]
mov esi, dword [ebx + 8]
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ecx
cmp dword [edi], 0
je 0x4a5aee
cmp dword [edi + 0x1c], eax
je 0x4a5aee
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x4a5add
mov dword [esp + 0x14], edi
test eax, eax
je 0x4a5c23
cmp dword [ebp + 0x10], ecx
je 0x4a5c23
mov ecx, dword [ebp + 8]
test byte [ecx + 0x1c], 0x80
jne 0x4a5b50
mov ecx, ebx
call fcn.00481e7d
mov ecx, dword [esp + 0x10]
mov esi, eax
push 0
push esi
push dword [ebp + 0x10]
mov edx, 0x8e
call fcn.0046b9a1
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push esi
push 0
push dword [esp + 0x28]
push 0x1e
pop edx
call fcn.0046b9a1
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.00481e9c
jmp 0x4a5c23
call fcn.004877d3
mov ecx, dword [ebx + 0x2c]
mov edx, eax
and dword [esp + 0x2c], 0
mov dword [esp + 0x34], edx
movzx eax, word [edx + 0x32]
lea edi, [ecx + 1]
add ecx, eax
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [ebx + 0x2c], ecx
test eax, eax
je 0x4a5bc4
mov edi, dword [ebp + 0xc]
mov ebx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov ecx, edi
mov dx, word [eax + ebx*2]
call fcn.004877eb
movsx ecx, ax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push 0x5e
pop edx
call fcn.0046b9a1
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0x34]
inc ebx
cmp ebx, eax
jl 0x4a5b86
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
push eax
push dword [esp + 0x20]
mov ecx, esi
push 0
push dword [esp + 0x2c]
push 0x1d
pop edx
call fcn.0046bcab
mov ecx, dword [esp + 0x20]
mov esi, eax
push 0
push 2
push 0xb
push 0x46
pop edx
call fcn.0046b9a1
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov edx, eax
push 0xffffffffffffffff
push str.corrupt_database
call fcn.0046c12a
cmp dword [ebx + 0x78], 0
mov eax, ebx
pop ecx
cmovne eax, dword [ebx + 0x78]
mov edx, esi
pop ecx
mov ecx, dword [esp + 0x10]
mov byte [eax + 0x15], 1
call fcn.0046c1e8
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push 0
mov edx, dword [edx + 0x20]
call fcn.0047d1f6
mov esi, dword [ebp + 8]
and dword [esp + 0x38], 0
mov dword [esp + 0x34], eax
xor eax, eax
pop ecx
cmp ax, word [esi + 0x22]
jge 0x4a5c97
mov ebx, dword [esp + 0x34]
xor ecx, ecx
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 4]
cmp byte [eax + ecx + 8], 0x45
jne 0x4a5c7f
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 0x10]
add eax, ebx
push 0
push 0
push eax
push 0x57
pop edx
call fcn.0046b9a1
mov ecx, dword [esp + 0x2c]
add esp, 0xc
movsx eax, word [esi + 0x22]
inc ebx
add ecx, 0x10
mov dword [esp + 0x20], ecx
cmp ebx, eax
jl 0x4a5c58
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, dword [edi + 0xc]
test edx, edx
je 0x4a5caf
mov ecx, dword [esp + 0x18]
push 0
push 0
call fcn.0047cd6c
pop ecx
pop ecx
jmp 0x4a5cb1
xor eax, eax
mov edx, dword [edi + 8]
push edi
push 0
push 0
push 2
push eax
push ecx
mov ecx, dword [esp + 0x30]
push 0
call fcn.0047d093
mov edx, dword [esp + 0x4c]
pop ecx
pop ecx
push eax
mov ecx, ebx
call fcn.004a3bdc
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret