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

Disassembly:
push 0xffffffffffffffff
push 0x4947d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x28]
call fcn.0040ae33
xor eax, eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], eax
mov dword [esi + 0x18], eax
push 0x100000
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], 1
mov dword [esi + 0x1c], eax
call fcn.0040ae52
test al, al
je 0x4737da
mov eax, dword [esp + 0xc8]
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], eax
call fcn.0040aea1
push 0x100000
lea ecx, [esp + 0x54]
call fcn.0040c853
test al, al
je 0x4737da
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x50]
call fcn.0040c89e
lea edx, [esp + 0x8c]
push 3
push edx
lea ecx, [esp + 0x30]
call fcn.0040af6b
cmp eax, 3
jb 0x473b06
cmp byte [esp + 0x8c], 0x1f
jne 0x473b06
cmp byte [esp + 0x8d], 0x9d
jne 0x473b06
mov al, byte [esp + 0x8e]
test al, 0x60
mov bl, al
jne 0x473b06
and eax, 0x1f
mov ebp, eax
cmp ebp, 9
mov dword [esp + 0x80], ebp
jb 0x473b06
cmp ebp, 0x10
ja 0x473b06
mov eax, dword [esi + 0x14]
mov edi, 1
mov ecx, ebp
shl edi, cl
cmp ebp, eax
mov dword [esp + 0x84], edi
jne 0x4737a8
mov eax, dword [esi + 8]
test eax, eax
je 0x4737a8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4737a8
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4737f9
mov ecx, esi
call fcn.00473620
lea ecx, [edi + edi]
call fcn.00476830
test eax, eax
mov dword [esi + 8], eax
je 0x4737da
mov ecx, edi
call fcn.00476830
test eax, eax
mov dword [esi + 0xc], eax
je 0x4737da
mov ecx, edi
call fcn.00476830
test eax, eax
mov dword [esi + 0x10], eax
jne 0x4737f6
lea ecx, [esp + 0x50]
call fcn.0040c88f
lea ecx, [esp + 0x28]
call fcn.0040ae90
mov eax, 0x8007000e
jmp 0x473b1d
mov dword [esi + 0x14], ebp
and bl, 0x80
xor edi, edi
neg bl
sbb ebx, ebx
mov ecx, dword [esi + 8]
and ebx, 0xffff0100
xor eax, eax
add ebx, 0x10000
mov dword [esp + 0x20], edi
cmp ebx, 0x100
mov dword [esp + 0x24], edi
sete al
add eax, 0x100
xor ebp, ebp
mov dword [esp + 0x1c], eax
xor eax, eax
mov word [ecx + 0x200], ax
mov edx, dword [esi + 0xc]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x14], 9
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], edi
mov byte [edx + 0x100], al
mov dword [esp + 0x88], eax
jmp 0x473863
mov edi, dword [esp + 0x18]
cmp edi, ebp
jne 0x47392b
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0040af6b
mov edi, eax
lea ecx, [esp + 0x50]
shl edi, 3
mov dword [esp + 0x18], edi
xor ebp, ebp
call fcn.0040c8b6
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0xb0], eax
test ecx, ecx
mov dword [esp + 0xb4], edx
je 0x47392b
mov ebx, dword [esp + 0x20]
mov ecx, eax
sub ecx, ebx
mov ebx, edx
sbb ebx, dword [esp + 0x24]
mov dword [esp + 0xa4], ebx
jne 0x4738cd
cmp ecx, 0x2000
jb 0x47392b
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x30]
xor ebx, ebx
sub eax, edx
cdq
add eax, ecx
mov ecx, dword [esp + 0x3c]
adc edx, ebx
mov ebx, dword [esp + 0x38]
add eax, ebx
adc edx, ecx
lea ecx, [esp + 0xb0]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xd8]
push ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0xb0], edx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x473a96
mov ecx, dword [esp + 0x14]
mov eax, ebp
shr eax, 3
xor ebx, ebx
mov edx, 1
mov bh, byte [esp + eax + 0x8e]
mov bl, byte [esp + eax + 0x8d]
shl edx, cl
xor ecx, ecx
mov cl, byte [esp + eax + 0x8c]
shl ebx, 8
or ebx, ecx
mov ecx, ebp
and ecx, 7
mov dword [esp + 0xa0], edx
shr ebx, cl
dec edx
and ebx, edx
mov edx, dword [esp + 0x14]
add ebp, edx
mov ecx, ebx
cmp ebp, edi
mov dword [esp + 0x78], ecx
ja 0x473ab3
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jae 0x473aac
cmp ecx, dword [esp + 0x7c]
jne 0x4739b2
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 9
mov dword [esp + 0x1c], 0x101
mov byte [esp + 0x13], 0
jmp 0x473863
xor edi, edi
cmp ecx, 0x100
mov eax, ecx
jb 0x4739e2
mov edx, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
inc edi
mov dl, byte [edx + eax]
mov byte [ebx + edi - 1], dl
mov edx, dword [esi + 8]
xor ebx, ebx
mov bx, word [edx + eax*2]
mov eax, ebx
cmp eax, 0x100
jae 0x4739be
mov edx, dword [esp + 0x1c]
mov ebx, dword [esi + 0x10]
inc edi
mov byte [ebx + edi - 1], al
mov bl, byte [esp + 0x13]
test bl, bl
je 0x473a02
mov ebx, dword [esi + 0xc]
dec edx
cmp ecx, edx
mov byte [ebx + edx], al
jne 0x473a02
mov ecx, dword [esi + 0x10]
mov byte [ecx], al
mov eax, dword [esp + 0x54]
mov edx, dword [esi + 0x10]
dec edi
inc eax
mov cl, byte [edx + edi]
mov edx, dword [esp + 0x50]
mov byte [eax + edx - 1], cl
mov ecx, dword [esp + 0x58]
cmp eax, ecx
mov dword [esp + 0x54], eax
jne 0x473a2f
lea ecx, [esp + 0x50]
call fcn.0040c98b
mov eax, dword [esp + 0x54]
test edi, edi
ja 0x473a06
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x84]
cmp eax, ecx
jae 0x473a8c
mov ecx, dword [esi + 8]
mov dx, word [esp + 0x78]
mov byte [esp + 0x13], 1
mov word [ecx + eax*2], dx
mov ecx, dword [esp + 0xa0]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x47385f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
cmp eax, ecx
jae 0x47385f
xor ebp, ebp
xor edi, edi
inc eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
jmp 0x473863
mov byte [esp + 0x13], 0
jmp 0x47385f
lea ecx, [esp + 0x50]
call fcn.0040c88f
lea ecx, [esp + 0x28]
call fcn.0040ae90
mov eax, ebx
jmp 0x473b1d
mov edi, 1
jmp 0x473aba
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
sub eax, ecx
mov ecx, dword [esp + 0x48]
xor ebx, ebx
cdq
add eax, ecx
lea ecx, [esp + 0x50]
adc edx, ebx
mov ebx, dword [esp + 0x3c]
add eax, ebp
adc edx, ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
call fcn.0040c96f
test edi, edi
jne 0x473af0
mov edi, eax
lea ecx, [esp + 0x50]
call fcn.0040c88f
lea ecx, [esp + 0x28]
call fcn.0040ae90
mov eax, edi
jmp 0x473b1d
lea ecx, [esp + 0x50]
call fcn.0040c88f
lea ecx, [esp + 0x28]
call fcn.0040ae90
mov eax, 1
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret 0x14