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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x49f5a2
sub esp, 0x60
mov eax, dword [esp + 0x68]
cmp eax, 0x20000000
jge 0x49f537
mov ecx, dword [esp + 0x70]
cmp ecx, 0x20000000
jge 0x49f4cd
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 0x49f2e9
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 0x49f2df
mov byte [esp + ebx + 0x4e], al
nop
mov eax, ecx
xor ebp, ebp
jmp 0x49f30a
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 0x49f300
mov dword [esp + 0x2c], ebp
mov byte [esp + ebp + 0x44], cl
lea ecx, [ebx + edx + 2]
lea esi, [edx + ebx]
test eax, eax
je 0x49f33a
lea edi, [eax + ebp]
lea edi, [edi + esi + 3]
movzx ebp, byte [esp + 0x74]
or ebp, 2
jmp 0x49f341
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 0x49f359
or ebp, 8
xchg ebp, eax
mov byte [esp + 0x27], al
xchg ebp, eax
mov dword [esp + 0x34], edi
lea eax, [0x67e920]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edi
call fcn.00447740
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 0x49f3a4
mov esi, ebx
mov dword [esp + 0x5c], eax
lea ebx, [esp + 0x4e]
cmp ebx, edx
je 0x49f3cc
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.0045fe60
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 0x49f3ed
mov ebp, ebx
mov ebx, dword [esp + 0x64]
cmp ebx, ecx
je 0x49f419
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.0045fe60
mov eax, dword [esp + 0x70]
test eax, eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
jmp 0x49f41f
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x49f4c5
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 0x49f44d
mov ebp, edi
jmp 0x49f45b
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 0x49f493
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.0045fe60
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 0x49f4a9
mov ecx, edx
mov edx, dword [esp + 0x6c]
cmp edx, eax
je 0x49f4c1
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0045fe60
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov dword [esp], 0
lea eax, [0x6c36e9]
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, [0x6b6e91]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 3
call fcn.0044b070
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, [0x67e720]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00433690
mov dword [esp], 0
lea eax, [0x6c3ec9]
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, [0x6b6e91]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 3
call fcn.0044b070
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, [0x67e720]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00433690
nop
call fcn.0045e260
jmp fcn.0049f270