Function at 0x49290c
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 0x49294c
cmp dword [edi + 0x1c], eax
je 0x49294c
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x49293b
mov dword [esp + 0x14], edi
test eax, eax
je 0x492a83
cmp dword [ebp + 0x10], ecx
je 0x492a83
mov eax, dword [ebp + 8]
test byte [eax + 0x1c], 0x80
jne 0x4929ae
mov ecx, ebx
call fcn.0046f3a4
mov ecx, dword [esp + 0x10]
mov esi, eax
push 0
push esi
push dword [ebp + 0x10]
mov edx, 0x8e
call fcn.004591cc
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push esi
push 0
push dword [esp + 0x28]
push 0x1e
pop edx
call fcn.004591cc
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.0046f3c3
jmp 0x492a83
mov ecx, eax
call fcn.00474bb9
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 0x492a24
mov edi, dword [ebp + 0xc]
mov ebx, dword [esp + 0x2c]
mov edx, dword [edx + 4]
mov ecx, edi
mov dx, word [edx + ebx*2]
call fcn.00474bd1
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.004591cc
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0x34]
inc ebx
cmp ebx, eax
jl 0x4929e6
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.004594df
mov ecx, dword [esp + 0x20]
mov esi, eax
push 0
push 2
push 0xb
push 0x46
pop edx
call fcn.004591cc
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov edx, eax
push 0xffffffffffffffff
push str.corrupt_database
call fcn.00459979
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.00459a36
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.0046a552
pop ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x34], eax
xor eax, eax
cmp ax, word [ecx + 0x22]
jge 0x492af5
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov eax, dword [ebx + 4]
cmp byte [ecx + eax + 8], 0x45
jne 0x492add
mov eax, dword [esp + 0x24]
mov ecx, edi
push 0
push 0
mov eax, dword [eax + 0x24]
add eax, esi
push eax
push 0x57
pop edx
call fcn.004591cc
mov ecx, dword [esp + 0x2c]
add esp, 0xc
movsx eax, word [ebx + 0x22]
inc esi
add ecx, 0x10
mov dword [esp + 0x20], ecx
cmp esi, eax
jl 0x492ab4
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, dword [edi + 0xc]
xor esi, esi
test edx, edx
je 0x492b0d
mov ecx, dword [esp + 0x18]
push esi
push esi
call fcn.0046a101
pop ecx
pop ecx
jmp 0x492b0f
mov eax, esi
mov edx, dword [edi + 8]
push edi
push esi
push esi
push 2
push eax
push ecx
mov ecx, dword [esp + 0x30]
push esi
call fcn.0046a429
mov edx, dword [esp + 0x50]
pop ecx
pop ecx
push eax
mov ecx, ebx
call fcn.00490a46
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret