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

Disassembly:
push 0xffffffffffffffff
push 0x5435b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x158]
push ebp
mov eax, dword [ebx]
push esi
push edi
push ecx
mov ecx, dword [esp + 0x160]
lea edx, [esp + 0x14]
push edx
xor edi, edi
push ecx
mov ecx, ebx
mov dword [esp + 0x28], edi
call dword [eax + 0x10]
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x471daa
mov ebp, dword [esp + 0x168]
mov edx, dword [esp + 0x10]
push edi
push edx
lea ecx, [ebx + 0x2c]
call fcn.004703c0
mov eax, dword [esp + 0x10]
cmp eax, 0x38
jb 0x471d30
mov ecx, dword [esp + 0x15c]
mov esi, dword [ecx + 4]
cmp dword [esi], 0x1315749
jne 0x471d06
push eax
push edi
lea ecx, [ebx + 0x2c]
call fcn.004703c0
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 8]
cmp edx, ecx
mov dword [esp + 0x18], eax
ja 0x471d30
mov dword [esp + 0x24], 0xffffffff
mov ecx, dword [eax]
sub ecx, 8
lea edx, [esp + 0x24]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x30]
push edx
push ecx
push eax
call fcn.004ed3f0
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 4]
add esp, 0xc
cmp ecx, eax
je 0x471ad8
mov edx, dword [esi + 0xc]
and edx, 0x7f8
cmp edx, 0x20
jne 0x4719fb
cmp ebp, edi
je 0x4719ee
mov eax, dword [0x5ab980]
mov dword [esp + 0x70], 0x559c1c
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov eax, dword [ebp]
lea ecx, [esp + 0x70]
push ebx
or esi, 0xffffffff
push ecx
mov ecx, ebp
mov dword [esp + 0x15c], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0xa4], 0x77616974
mov dword [esp + 0xa0], esi
call dword [eax]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x154], 2
call fcn.005128e4
lea ecx, [esp + 0x88]
mov byte [esp + 0x154], 1
call fcn.005128e4
lea ecx, [esp + 0x84]
mov dword [esp + 0x154], esi
call fcn.005128e4
mov dword [esp + 0x1c], 1
jmp 0x471cfb
cmp dword [esp + 0x1c], edi
je 0x471d92
cmp ebp, edi
je 0x471acf
mov eax, dword [0x5ab980]
mov dword [esp + 0xac], 0x559c1c
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], edi
mov edx, dword [ebp]
lea eax, [esp + 0xac]
push ebx
push eax
mov ecx, ebp
mov dword [esp + 0x15c], 3
mov dword [esp + 0xb8], edi
mov dword [esp + 0xe0], 0x77616974
mov dword [esp + 0xdc], 0xfffffffe
call dword [edx]
lea ecx, [esp + 0xc8]
mov dword [esp + 0x154], 5
call fcn.005128e4
lea ecx, [esp + 0xc4]
mov byte [esp + 0x154], 4
call fcn.005128e4
lea ecx, [esp + 0xc0]
mov dword [esp + 0x154], 0xffffffff
call fcn.005128e4
mov dword [esp + 0x1c], edi
jmp 0x471cfb
xor ecx, ecx
push edi
mov cx, word [esi + 0x32]
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00470400
mov eax, dword [esi + 0xc]
test ah, 8
je 0x471c40
push 0x400
lea ecx, [esp + 0x114]
call fcn.0051c058
push 0x400
lea ecx, [esp + 0xec]
mov dword [esp + 0x158], 6
call fcn.0051c058
xor edx, edx
lea eax, [esi + 0x38]
mov dx, word [esi + 0x32]
push edi
push edx
push eax
lea ecx, [esp + 0x11c]
mov byte [esp + 0x160], 7
mov dword [esp + 0x14c], edi
mov dword [esp + 0x38], 0xffffffff
call fcn.0051c0e0
lea eax, [esp + 0x2c]
push edi
lea ecx, [ebx + 0x84]
push eax
lea edx, [esp + 0xf0]
push ecx
lea eax, [esp + 0x11c]
push edx
push eax
lea ecx, [esp + 0x14c]
call fcn.00477990
lea ecx, [esp + 0x110]
mov dword [esp + 0x20], eax
call fcn.0051c10b
cmp dword [esp + 0x20], 1
jne 0x471d37
mov ax, word [esi + 0x30]
lea ecx, [esp + 0xe8]
mov dword [esp + 0x28], eax
and eax, 0xffff
mov dword [esp + 0x20], eax
call fcn.0051749b
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jne 0x471d67
mov dx, word [esp + 0x28]
lea eax, [ecx + 0x38]
mov ecx, dword [esp + 0x18]
mov word [esi + 0x32], dx
mov esi, dword [esp + 0x15c]
push 0xffffffffffffffff
mov dword [ecx], eax
push eax
mov ecx, esi
call fcn.00511241
mov esi, dword [esi + 4]
mov eax, dword [esp + 0xe8]
push edi
push edi
lea edx, [esi + 0x38]
lea ecx, [esp + 0xf0]
mov dword [esp + 0x20], edx
call dword [eax + 0x28]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov cx, word [esi + 0x32]
push ecx
push edx
lea ecx, [esp + 0xf0]
call fcn.0051c23a
lea ecx, [esp + 0xe8]
mov byte [esp + 0x154], 6
call fcn.0051c11d
lea ecx, [esp + 0x110]
mov dword [esp + 0x154], 0xffffffff
call fcn.0051c11d
xor eax, eax
lea ecx, [ebx + 0x2c]
mov ax, word [esi + 0x32]
push eax
push edi
call fcn.00470400
mov ecx, dword [esi + 0xc]
and ecx, 0x7f8
cmp ecx, 0x20
jne 0x471d99
cmp ebp, edi
je 0x471cfb
mov eax, dword [0x5ab980]
mov dword [esp + 0x34], 0x559c1c
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov edx, dword [esi + 0x2c]
mov eax, dword [ebp]
lea ecx, [esp + 0x34]
push ebx
push ecx
mov ecx, ebp
mov dword [esp + 0x15c], 8
mov dword [esp + 0x40], edi
mov dword [esp + 0x68], 0x77616974
mov dword [esp + 0x64], edx
call dword [eax]
lea ecx, [esp + 0x50]
mov dword [esp + 0x154], 0xa
call fcn.005128e4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x154], 9
call fcn.005128e4
lea ecx, [esp + 0x48]
mov dword [esp + 0x154], 0xffffffff
call fcn.005128e4
mov dword [esp + 0x164], 0x1388
mov eax, dword [esp + 0x164]
mov edx, dword [ebx]
push eax
mov eax, dword [esp + 0x160]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x10]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4718a6
jmp 0x471da6
mov eax, 0xffffffb0
jmp 0x471daa
lea ecx, [esp + 0xe8]
mov byte [esp + 0x154], 6
call fcn.0051c11d
lea ecx, [esp + 0x110]
mov dword [esp + 0x154], 0xffffffff
call fcn.0051c11d
or eax, 0xffffffff
jmp 0x471daa
lea ecx, [esp + 0xe8]
mov byte [esp + 0x154], 6
call fcn.0051c11d
lea ecx, [esp + 0x110]
mov dword [esp + 0x154], 0xffffffff
call fcn.0051c11d
mov eax, 0xffffff88
jmp 0x471daa
mov eax, dword [esp + 0x160]
cmp eax, edi
je 0x471da6
mov dword [eax], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret 0x10