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

Disassembly:
push 0xffffffffffffffff
push 0x4fbc59
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5384a8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5384a8]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8c]
mov edi, ecx
mov esi, edx
xor ebp, ebp
push 0x515198
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ebp
call fcn.00401f40
mov ebx, 1
mov dword [esp + 0x84], ebx
cmp esi, ebp
jne 0x476438
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00406160
mov byte [esp + 0x84], 0
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x20], ebx
jb 0x476419
mov edx, dword [esp + 0x3c]
push edx
call fcn.0047d3e0
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x3c], 0
call fcn.00401050
jmp 0x47666e
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x476440
sub eax, edx
mov ebx, eax
mov byte [esp + 0x14], cl
xor eax, eax
mov ecx, ebx
and ecx, 0x8000000f
mov dword [esp + 0x2c], ebx
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
jns 0x47646d
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, ebx
cdq
and edx, 0xf
add eax, edx
mov ebp, eax
sar ebp, 4
mov dword [esp + 0x28], ecx
test ebp, ebp
jle 0x47652c
mov ebx, esi
mov dword [esp + 0x24], ebp
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [ebx]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x70], eax
push ecx
lea eax, [esp + 0x68]
mov dword [esp + 0x70], edx
call fcn.00475850
xor edi, edi
lea ecx, [ecx]
movzx edx, byte [esp + edi + 0x54]
push edx
lea eax, [esp + 0x18]
push str._02X
push eax
call fcn.0047fe00
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4764f0
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x3c]
call fcn.00429610
inc edi
cmp edi, 0x10
jl 0x4764d0
add ebx, 0x10
sub dword [esp + 0x24], 1
jne 0x47648c
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
test ecx, ecx
jg 0x476538
test ebx, ebx
jne 0x4765bf
xor eax, eax
push ecx
shl ebp, 4
add ebp, esi
lea edx, [esp + 0x68]
push ebp
push edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.0048cf50
mov esi, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
call fcn.00475850
xor esi, esi
movzx ecx, byte [esp + esi + 0x54]
push ecx
lea edx, [esp + 0x18]
push str._02X
push edx
call fcn.0047fe00
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4765a1
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
call fcn.00429610
inc esi
cmp esi, 0x10
jl 0x476582
cmp dword [esp + 0x34], 0xfffffffd
mov dword [edi], 0
jne 0x4765d2
mov dword [edi], 0xfffffffd
push 0xffffffffffffffff
mov byte [esp + 0x88], 2
push 0
lea ecx, [esp + 0x3c]
mov esi, 0xf
push ecx
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], 0
mov ecx, edi
mov byte [edi + 8], 0
call fcn.00401ff0
mov byte [esp + 0x84], 0
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x20], 1
jb 0x476621
mov edx, dword [esp + 0x3c]
push edx
call fcn.0047d3e0
add esp, 4
mov dword [esp + 0x50], esi
xor esi, esi
push 3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], esi
mov byte [esp + 0x40], 0
call fcn.0047ac60
mov eax, dword [esp + 0x34]
cmp eax, 0xfffffffd
je 0x476665
cmp eax, esi
je 0x476661
jmp 0x476650
mov dword [eax], esi
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
cmp eax, esi
jne 0x476650
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x18]
call fcn.0047aca0
mov eax, edi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0047d0e0
add esp, 0x74
ret 4