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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5932e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp + 0xc]
mov ebx, edx
push edi
mov dword [ebp - 0x40], ebx
cmp byte [esi], 4
mov edx, dword [esi + 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [edx + 4]
mov dword [ebp - 0x3c], eax
jne 0x473bfc
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
test byte [esi + 1], 0x20
je 0x473c20
mov edx, dword [esi + 0x40]
mov ecx, eax
push esi
call fcn.0046b8a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x473fae
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x473cdc
cmp byte [edx + 0xb], 0
mov eax, dword [ebx + 8]
mov edi, dword [esi + 0x40]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x28], eax
je 0x473c7d
mov eax, dword [edx + 4]
mov byte [edx + 0xb], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x473c7d
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
test byte [eax + 1], 0x10
je 0x473c70
mov byte [edx + 0xb], 1
cmp dword [eax + 0x40], edi
jne 0x473c70
cmp dword [eax + 0x20], ecx
jne 0x473c70
cmp dword [eax + 0x24], ebx
jne 0x473c70
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x473c54
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
test byte [esi + 1], 2
je 0x473c9a
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 0x20]
jne 0x473c9a
mov eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0x24]
jne 0x473c9a
xor eax, eax
jmp 0x473d4e
test ecx, ecx
jne 0x473d51
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
xor eax, eax
cmp dword [ebp + 8], eax
setne al
xor edx, edx
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.004702c0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x473d4b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x473d51
mov edx, dword [ebp + 8]
test dl, 2
jne 0x473d51
movzx ecx, word [ebx + 0x18]
test cx, cx
je 0x473d25
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
xor eax, eax
mov word [ebp - 0x10], cx
test edx, edx
mov dword [ebp - 0xe], 0
lea edx, [ebp - 0x18]
mov byte [ebp - 0xa], 0
setne al
mov ecx, esi
push eax
push 0
push 0
call fcn.004702c0
jmp 0x473d40
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
xor eax, eax
test edx, edx
mov edx, dword [ebx]
setne al
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.0046b9a0
add esp, 0x10
test eax, eax
jne 0x473fb0
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x34]
mov eax, dword [esi + 0x74]
push edx
push ebx
mov ecx, dword [ecx + 0x50]
mov edx, ecx
mov dword [ebp - 0x2c], ecx
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.004715b0
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x473fae
movzx ecx, word [esi + 0x46]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
test eax, eax
jne 0x473e8e
mov ecx, dword [edi + 0x48]
call fcn.00467c20
mov edi, eax
test edi, edi
jne 0x473fae
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov eax, dword [edi + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
cmp byte [edi + 8], 0
mov dword [ebp - 0x38], ecx
jne 0x473dd2
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov dword [edx], eax
lea eax, [ebp - 0x20]
mov edx, ecx
push eax
mov ecx, edi
call fcn.00471410
movzx ecx, word [ebp - 0xe]
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
cmp ecx, edx
jne 0x473e69
movzx eax, word [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x473e69
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x11], 0
je 0x473e0a
movzx eax, word [edi + 0x10]
cmp edx, eax
jge 0x473e69
mov ecx, dword [ebp - 0x38]
lea eax, [ecx + edx]
cmp eax, dword [edi + 0x3c]
jbe 0x473e49
push 0x5966fc
push 0x11114
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045b900
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
push edx
push dword [ebp - 0x2c]
push ecx
call fcn.00516840
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, edi
call fcn.00471890
mov edi, dword [ebp - 0x24]
add esp, 8
test edi, edi
jne 0x473fae
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
jmp 0x473ea9
jns 0x473ea7
cmp word [edi + 0x16], 0
jbe 0x473ea7
and byte [esi + 1], 0xfd
lea eax, [ecx + 1]
mov word [esi + 0x46], ax
movzx edx, ax
jmp 0x473ea9
mov edx, ecx
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call fcn.004719b0
xor eax, eax
add esp, 0x14
mov word [esi + 0x32], ax
cmp byte [edi + 0xc], al
je 0x473fab
and byte [esi + 1], 0xfd
mov ecx, esi
call fcn.004738e0
test byte [ebp + 8], 2
mov edi, eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x38], edi
mov byte [eax + 0xc], 0
mov byte [esi], 1
je 0x473fae
test edi, edi
jne 0x473fae
mov al, byte [esi + 0x44]
test al, al
js 0x473f3b
jle 0x473f2c
lea ebx, [esi + 0x78]
nop dword [eax + eax]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x48]
call fcn.004673f0
movsx eax, byte [esi + 0x44]
lea ebx, [ebx + 4]
inc edi
cmp edi, eax
jl 0x473f10
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x40]
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.004673f0
mov byte [esi + 0x44], 0xff
cmp dword [esi + 0x70], 0
je 0x473f89
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.00458f30
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
jne 0x473f7b
lea edi, [eax + 7]
mov byte [esi], 3
mov eax, dword [ebx + 8]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x3c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
push dword [ebx + 8]
push dword [ebx]
push eax
call fcn.00516840
add esp, 0xc
mov byte [esi], 3
mov eax, dword [ebx + 8]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x3c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00514e1d
mov esp, ebp
pop ebp
ret