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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x49c59d
sub esp, 0x60
mov eax, dword [esp + 0x68]
cmp eax, 1
jg 0x49c4bf
test eax, eax
je 0x49c4ab
cmp eax, 1
je 0x49c496
lea ecx, [eax - 1]
mov edx, dword [esp + 0x74]
mov ebx, edx
imul edx, ecx
mov ebp, dword [esp + 0x64]
xor esi, esi
jmp 0x49c2f1
lea edi, [esi + 1]
mov dword [esp + 0x38], edi
lea edi, [ebp + esi*8]
mov edi, dword [edi + 4]
add edx, edi
mov edi, dword [esp + 0x38]
mov esi, edi
cmp esi, eax
jge 0x49c2fc
jb 0x49c2db
jmp 0x49c596
mov dword [esp + 0x50], ecx
lea eax, [0x5cdaa0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00434f20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x68]
test ebx, ebx
jbe 0x49c58f
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov ebx, dword [esp + 0x64]
mov ebp, dword [ebx]
mov esi, dword [ebx + 4]
cmp ecx, esi
jle 0x49c48f
mov dword [esp + 0x3c], esi
mov dword [esp + 0x58], edx
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00448cd0
mov eax, dword [esp + 0x6c]
dec eax
neg eax
sar eax, 0x1f
and eax, 8
mov ecx, dword [esp + 0x64]
add eax, ecx
mov dword [esp + 0x5c], eax
xor ecx, ecx
mov edx, dword [esp + 0x3c]
jmp 0x49c3ab
mov dword [esp + 0x48], edi
mov dword [esp], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call fcn.00448cd0
mov eax, dword [esp + 0x4c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x50]
cmp ecx, ebx
jge 0x49c457
lea ebp, [eax + ecx*8]
mov esi, dword [ebp + 4]
mov ebp, dword [ebp]
mov edi, dword [esp + 0x40]
cmp edx, edi
ja 0x49c588
mov dword [esp + 0x34], esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], edx
sub edi, edx
mov eax, dword [esp + 0x44]
sub eax, edx
neg eax
sar eax, 0x1f
and eax, edx
mov ebx, dword [esp + 0x58]
add eax, ebx
mov ecx, dword [esp + 0x74]
cmp edi, ecx
jle 0x49c453
mov dword [esp + 0x48], ecx
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00448cd0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
ja 0x49c581
mov dword [esp + 0x3c], eax
sub ecx, eax
mov ebx, dword [esp + 0x44]
sub ebx, eax
neg ebx
sar ebx, 0x1f
and ebx, eax
mov esi, dword [esp + 0x58]
add ebx, esi
mov edi, dword [esp + 0x34]
cmp ecx, edi
jg 0x49c37e
mov edi, ecx
jmp 0x49c37e
mov ecx, edi
jmp 0x49c3f9
mov dword [esp], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
call fcn.004380d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov esi, ecx
jmp 0x49c347
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x60
ret
cmp eax, 2
je 0x49c532
cmp eax, 3
jne 0x49c2c7
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov ebp, dword [eax + 8]
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00438070
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
call fcn.00437fb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x60
ret
call fcn.004243c0
ud2
call fcn.004243c0
ud2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.00446b60
jmp fcn.0049c290