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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [ecx]
mov dword [esp + 8], eax
cmp word [ecx + 0xcc], 0
jle 0x47f280
push str.parameters_are_not_allowed_in_views
push esi
call fcn.00434540
add esp, 8
test ebx, ebx
je 0x47f19b
mov ecx, dword [esp + 8]
mov edx, ebx
push 1
call fcn.00469490
add esp, 4
cmp byte [esi + 0xd0], 2
mov ecx, dword [esp + 8]
jb 0x47f26d
test edi, edi
je 0x47f278
pxor xmm0, xmm0
movdqu xmmword [esp + 0x68], xmm0
mov dword [esp + 0x78], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0x4a7730
mov esi, dword [edi]
test esi, esi
jle 0x47f26d
add edi, 8
lea ebx, [esp + 0x60]
jmp 0x47f1f9
cmp esi, 2
jl 0x47f20f
dec esi
add edi, 0x10
mov edx, dword [edi]
test edx, edx
je 0x47f1f0
mov ecx, ebx
call fcn.00499fb0
test eax, eax
jne 0x47f20f
cmp esi, 1
jg 0x47f1f5
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
test eax, eax
mov ecx, dword [esp + 8]
jle 0x47f26d
xor ebx, ebx
jmp 0x47f235
mov dword [edx], 0
mov eax, dword [edi]
nop dword [eax + eax]
inc ebx
cmp ebx, eax
jge 0x47f26d
mov esi, ebx
shl esi, 4
test byte [edi + esi + 0x11], 3
jne 0x47f230
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x10c]
test edx, edx
je 0x47f230
mov esi, dword [edi + esi + 0xc]
nop word cs:[eax + eax]
cmp dword [edx], esi
je 0x47f220
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x47f260
jmp 0x47f230
test edi, edi
je 0x47f278
mov edx, edi
call fcn.00475f10
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, esi
push dword [ebp + 0x1c]
push 0
push 1
push dword [ebp + 0x18]
mov dword [esp + 0x24], eax
push eax
call fcn.0047a270
add esp, 0x14
mov eax, dword [esi + 0xec]
test eax, eax
je 0x47f187
cmp dword [esi + 0x24], 0
jne 0x47f187
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
mov dword [esp + 0xc], eax
je 0x47f2ee
mov ecx, dword [esi]
cmp byte [ecx + 0xb1], 0
mov edx, dword [ebp + 8]
je 0x47f2f7
push str.corrupt_database
push esi
call fcn.00434540
mov eax, dword [esp + 0x14]
add esp, 8
mov dword [esp + 0x14], 0
jmp 0x47f315
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], ecx
jmp 0x47f315
call fcn.0049e4e0
test eax, eax
jns 0x47f311
push dword [ebp + 8]
push str.unknown_database__T
push esi
call fcn.00434540
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], esi
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x47f33c
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x10]
add edx, 0xc
mov eax, 0xffffffff
nop
inc eax
lea esi, [edx + 0x10]
cmp dword [edx], ecx
mov edx, esi
jne 0x47f330
jmp 0x47f341
mov eax, 0xffff8000
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 0x10]
mov esi, eax
shl esi, 4
mov edx, dword [edx + esi]
mov dword [esp + 0x48], edx
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + esi + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], str.view
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
cmp eax, 1
sete byte [esp + 0x44]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x4a85c0
mov dword [esp + 0x2c], 0x4a8610
mov dword [esp + 0x30], 0x49a420
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x24]
mov edx, ebx
call fcn.0049a080
test eax, eax
jne 0x47f187
or byte [ebx + 6], 0x20
cmp byte [esi + 0xd0], 1
jbe 0x47f3da
mov eax, ebx
xor ebx, ebx
jmp 0x47f3ea
mov ecx, dword [esp + 8]
mov edx, ebx
push 1
call fcn.0049c810
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x2c], eax
mov ecx, dword [esp + 8]
mov edx, edi
push 1
call fcn.0049ca80
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x10], eax
mov byte [ecx + 0x2b], 2
mov eax, dword [esp + 8]
cmp byte [eax + 0x57], 0
jne 0x47f187
mov eax, dword [esi + 0xc4]
xor ecx, ecx
cmp byte [eax], 0x3b
je 0x47f42d
mov ecx, dword [esi + 0xc8]
add eax, ecx
nop
movzx ecx, byte [eax - 1]
dec eax
test byte [ecx + 0x52aaeb], 1
jne 0x47f430
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x18]
mov ecx, esi
xor edx, edx
push 0
push 0
push eax
call fcn.0047a9e0
add esp, 0xc
jmp 0x47f187