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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a9ca7
sub esp, 0x64
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4a9c8d
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x94]
mov dword [esp + 0x14], esi
call fcn.004a7a20
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x4a9abd
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jg 0x4a9a8c
mov edx, eax
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
cmp eax, edx
jle 0x4a9a88
mov dword [esp + 0x60], ebx
mov dword [esp], ebx
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
shl edx, 2
mov dword [esp + 8], edx
call fcn.00448cd0
mov eax, dword [esp + 0x68]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xac], eax
add esp, 0x64
ret
mov edx, eax
jmp 0x4a9a24
lea ecx, [0x5cd2a0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea ecx, [eax + 4]
mov dword [esp + 8], ecx
call fcn.00434f20
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x84]
jmp 0x4a9a18
mov eax, dword [esp + 0x90]
cmp eax, 1
jne 0x4a9bd1
mov eax, dword [esp + 0x8c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
call fcn.004a97b0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
jne 0x4a9b63
xor eax, eax
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ebp
add esp, 0x64
ret
mov ebp, dword [esp + 0x7c]
cmp ebp, 1
jl 0x4a9b85
mov esi, 1
mov edi, dword [esp + 0x74]
test esi, esi
jbe 0x4a9c86
mov dword [edi], eax
mov eax, esi
mov esi, edi
jmp 0x4a9b35
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ebx
lea eax, [0x5cd2a0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 5
call fcn.00434f20
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
jmp 0x4a9b75
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x2c], eax
call fcn.004a9e00
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], esi
add esp, 0x64
ret
call fcn.00424360
ud2
lea eax, [0x5cd8e0]
mov dword [esp], eax
lea eax, [0x698eb8]
mov dword [esp + 4], eax
call fcn.004251b0
ud2
call fcn.00446b60
jmp fcn.004a9990