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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x47b242
sub esp, 0x60
mov eax, dword [esp + 0x68]
cmp eax, 0x20000000
jge 0x47b1d7
mov ecx, dword [esp + 0x70]
cmp ecx, 0x20000000
jge 0x47b16d
mov dword [esp + 0x4e], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x46], 0
mov dword [esp + 0x4a], 0
nop
mov edx, eax
xor ebx, ebx
jmp 0x47af89
or eax, 0xffffff80
mov byte [esp + ebx + 0x4e], al
inc ebx
mov eax, ebp
mov ebp, eax
and eax, 0x7f
sar ebp, 7
test ebp, ebp
jne 0x47af7f
mov byte [esp + ebx + 0x4e], al
nop
mov eax, ecx
xor ebp, ebp
jmp 0x47afaa
or ecx, 0xffffff80
mov byte [esp + ebp + 0x44], cl
inc ebp
mov ecx, esi
mov esi, ecx
and ecx, 0x7f
sar esi, 7
test esi, esi
jne 0x47afa0
mov dword [esp + 0x2c], ebp
mov byte [esp + ebp + 0x44], cl
lea ecx, [ebx + edx + 2]
lea esi, [edx + ebx]
test eax, eax
je 0x47afda
lea edi, [eax + ebp]
lea edi, [edi + esi + 3]
movzx ebp, byte [esp + 0x74]
or ebp, 2
jmp 0x47afe1
movzx ebp, byte [esp + 0x74]
mov edi, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ebx
movzx ecx, byte [esp + 0x75]
test cl, cl
je 0x47aff9
or ebp, 8
xchg ebp, eax
mov byte [esp + 0x27], al
xchg ebp, eax
mov dword [esp + 0x34], edi
lea eax, [0x63efa0]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edi
call fcn.00447490
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x27]
mov byte [eax], cl
mov ecx, dword [esp + 0x34]
lea edx, [ecx - 1]
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, 1
add edx, eax
mov ebp, dword [esp + 0x30]
lea esi, [ebp + 1]
cmp esi, ebx
jl 0x47b044
mov esi, ebx
mov dword [esp + 0x5c], eax
lea ebx, [esp + 0x4e]
cmp ebx, edx
je 0x47b06c
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.0045f7b0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov edx, ecx
sub ecx, ebp
add ecx, 0xfffffffe
mov ebx, ecx
neg ecx
sar ecx, 0x1f
add ebp, 2
and ebp, ecx
lea ecx, [ebp + eax]
mov ebp, dword [esp + 0x68]
cmp ebp, ebx
jl 0x47b08d
mov ebp, ebx
mov ebx, dword [esp + 0x64]
cmp ebx, ecx
je 0x47b0b9
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.0045f7b0
mov eax, dword [esp + 0x70]
test eax, eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
jmp 0x47b0bf
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x47b165
mov ebx, dword [esp + 0x38]
sub edx, ebx
lea ebx, [edx - 2]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
mov esi, dword [esp + 0x28]
and esi, ebx
lea ebx, [esi + eax]
mov esi, dword [esp + 0x2c]
lea edi, [esi + 1]
cmp edi, ebp
jge 0x47b0ed
mov ebp, edi
jmp 0x47b0fb
mov dword [esp + 0x3c], eax
mov eax, ebp
mov ebp, edi
mov edi, eax
mov eax, dword [esp + 0x3c]
lea eax, [esp + 0x44]
cmp eax, ebx
je 0x47b133
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x58], ebx
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call fcn.0045f7b0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
sub edx, esi
lea eax, [edx - 3]
mov edx, eax
neg eax
sar eax, 0x1f
and eax, ebp
add eax, ebx
cmp ecx, edx
jl 0x47b149
mov ecx, edx
mov edx, dword [esp + 0x6c]
cmp edx, eax
je 0x47b161
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0045f7b0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov dword [esp], 0
lea eax, [0x67d73c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x400
lea eax, [0x672d10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 3
call fcn.0044adc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408970
mov eax, dword [esp + 8]
lea ecx, [0x63eda0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00433470
mov dword [esp], 0
lea eax, [0x67de98]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x21
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x400
lea eax, [0x672d10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 3
call fcn.0044adc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408970
mov eax, dword [esp + 8]
lea ecx, [0x63eda0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00433470
nop
call fcn.0045dbb0
jmp fcn.0047af10