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

Disassembly:
push 0xffffffffffffffff
push 0x5ed6d9
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov esi, dword [esp + 0x114]
push 2
mov ebp, ecx
xor eax, eax
mov ebx, 7
xor edi, edi
push 0x614e94
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xe4], edi
mov word [esp + 0xd4], ax
call fcn.00401c70
xor ecx, ecx
push 1
mov word [esp + 0x7c], cx
push 0x6016e0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x114], edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], edi
call fcn.00401c70
push edi
xor edx, edx
push 0x5fd0cc
lea ecx, [esp + 0x44]
mov byte [esp + 0x114], 1
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov word [esp + 0x48], dx
call fcn.00401c70
xor eax, eax
mov word [esp + 0xe8], ax
mov eax, esi
mov byte [esp + 0x10c], 2
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xf8], edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4a9a60
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0xec]
call fcn.00401c70
xor ecx, ecx
push edi
mov word [esp + 0x98], cx
push 0x5fd0cc
lea ecx, [esp + 0x98]
mov byte [esp + 0x114], 3
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], edi
call fcn.00401c70
lea ecx, [esp + 0x34]
mov byte [esp + 0x10c], 4
call fcn.0043e0d0
mov eax, dword [esp + 0x78]
mov ebx, 8
mov byte [esp + 0x10c], 5
cmp dword [esp + 0x8c], ebx
jae 0x4a9ade
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
push edx
push edi
push eax
lea ecx, [esp + 0xf0]
call fcn.004034e0
mov esi, eax
cmp esi, 0xffffffff
jle 0x4a9f2b
push esi
push edi
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xf0]
call fcn.00402aa0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x118], 6
call fcn.00401f60
mov byte [esp + 0x10c], 5
cmp dword [esp + 0x70], ebx
jb 0x4a9b45
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004ca5d9
add esp, 4
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], ebx
jae 0x4a9b5c
lea eax, [esp + 0x94]
push eax
mov ecx, ebp
call fcn.004a9890
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, edi
je 0x4a9f75
mov edx, dword [esp + 0x88]
push 0xffffffffffffffff
add edx, esi
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xf0]
call fcn.00402aa0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x118], 7
call fcn.00401f60
mov byte [esp + 0x10c], 5
cmp dword [esp + 0x70], ebx
jb 0x4a9bbf
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004ca5d9
add esp, 4
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x54], ebx
jae 0x4a9bcd
lea edx, [esp + 0x40]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4a9bd2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp + 4]
call fcn.00401c70
jmp 0x4a9bf0
push edi
xor edx, edx
mov ebp, 7
push 0x5fd0cc
lea ecx, [esp + 0xb4]
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], edi
mov word [esp + 0xb8], dx
call fcn.00401c70
push edi
xor eax, eax
push 0x5fd0cc
lea ecx, [esp + 0x60]
mov byte [esp + 0x114], bl
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], edi
mov word [esp + 0x64], ax
call fcn.00401c70
mov edx, dword [esp + 0xcc]
mov byte [esp + 0x10c], 9
cmp dword [esp + 0xe0], ebx
jae 0x4a9c63
lea edx, [esp + 0xcc]
mov eax, edx
lea esi, [eax + 2]
jmp 0x4a9c70
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4a9c70
sub eax, esi
sar eax, 1
push eax
push edi
push edx
lea ecx, [esp + 0x48]
call fcn.004034e0
cmp eax, 0xffffffff
je 0x4a9f08
mov ecx, dword [esp + 0xdc]
push 0xffffffffffffffff
add ecx, eax
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x48]
call fcn.00402aa0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x118], 0xa
call fcn.00401f60
mov byte [esp + 0x10c], 9
cmp dword [esp + 0x30], ebx
jb 0x4a9cde
mov eax, dword [esp + 0x1c]
push eax
call fcn.004ca5d9
add esp, 4
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x8c], ebx
jae 0x4a9cef
lea edx, [esp + 0x78]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4a9cf4
sub eax, esi
sar eax, 1
push eax
push edi
push edx
lea ecx, [esp + 0x48]
call fcn.004034e0
mov esi, eax
cmp esi, 0xffffffff
jle 0x4a9ebc
push esi
push edi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x48]
call fcn.00402aa0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x118], 0xb
call fcn.00401f60
mov byte [esp + 0x10c], 9
cmp dword [esp + 0x30], ebx
jb 0x4a9d5a
mov edx, dword [esp + 0x1c]
push edx
call fcn.004ca5d9
add esp, 4
mov eax, dword [esp + 0x88]
push 0xffffffffffffffff
add eax, esi
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x48]
call fcn.00402aa0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x118], 0xc
call fcn.00401f60
mov byte [esp + 0x10c], 9
cmp dword [esp + 0x30], ebx
jb 0x4a9da4
mov edx, dword [esp + 0x1c]
push edx
call fcn.004ca5d9
add esp, 4
mov edx, dword [esp + 0xcc]
cmp dword [esp + 0xe0], ebx
jae 0x4a9dbb
lea edx, [esp + 0xcc]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4a9dc0
sub eax, esi
sar eax, 1
push eax
push edi
push edx
lea ecx, [esp + 0x48]
call fcn.004034e0
cmp eax, 0xffffffff
lea ecx, [esp + 0x3c]
jle 0x4a9e7c
push eax
push edi
lea eax, [esp + 0x20]
push eax
call fcn.00402aa0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x118], 0xd
call fcn.00401f60
mov byte [esp + 0x10c], 9
cmp dword [esp + 0x30], ebx
jb 0x4a9e27
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004ca5d9
add esp, 4
mov eax, dword [esp + 0xc0]
cmp eax, 1
jbe 0x4a9e8c
dec eax
push eax
push edi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xb8]
call fcn.00402aa0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x118], 0xe
call fcn.00401f60
mov byte [esp + 0x10c], 9
cmp dword [esp + 0x30], ebx
jb 0x4a9e8c
mov eax, dword [esp + 0x1c]
push eax
call fcn.004ca5d9
add esp, 4
jmp 0x4a9e8c
push 0xffffffffffffffff
push edi
push ecx
lea ecx, [esp + 0xb8]
call fcn.00401f60
mov ecx, dword [esp + 0xb0]
cmp dword [esp + 0xc4], ebx
jae 0x4a9ea3
lea ecx, [esp + 0xb0]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], ebx
jae 0x4a9eb1
lea eax, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.004a9780
cmp dword [esp + 0x70], ebx
jb 0x4a9ecf
mov edx, dword [esp + 0x5c]
push edx
call fcn.004ca5d9
add esp, 4
xor eax, eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], ax
mov byte [esp + 0x10c], 5
cmp dword [esp + 0xc4], ebx
jb 0x4a9bf0
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.004ca5d9
add esp, 4
jmp 0x4a9bf0
lea ecx, [esp + 0x58]
call fcn.00401760
lea ecx, [esp + 0xac]
mov byte [esp + 0x10c], 5
call fcn.00401760
mov eax, dword [esp + 0x14]
jmp 0x4a9f66
push 0xffffffffffffffff
push edi
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x9c]
call fcn.00401f60
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], ebx
jae 0x4a9f59
lea eax, [esp + 0x94]
push eax
mov ecx, ebp
call fcn.004a9890
mov ebp, 7
cmp eax, edi
je 0x4a9f7a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
jmp 0x4a9f7a
mov ebp, 7
lea ecx, [esp + 0x34]
mov byte [esp + 0x10c], 4
call fcn.0043e980
cmp dword [esp + 0xa8], ebx
jb 0x4a9fa4
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004ca5d9
add esp, 4
xor edx, edx
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], edi
mov word [esp + 0x94], dx
cmp dword [esp + 0xfc], ebx
jb 0x4a9fd5
mov eax, dword [esp + 0xe8]
push eax
call fcn.004ca5d9
add esp, 4
xor ecx, ecx
mov dword [esp + 0xfc], ebp
mov dword [esp + 0xf8], edi
mov word [esp + 0xe8], cx
cmp dword [esp + 0x54], ebx
jb 0x4aa000
mov edx, dword [esp + 0x40]
push edx
call fcn.004ca5d9
add esp, 4
xor eax, eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], edi
mov word [esp + 0x40], ax
cmp dword [esp + 0x8c], ebx
jb 0x4aa025
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004ca5d9
add esp, 4
xor edx, edx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], edi
mov word [esp + 0x78], dx
cmp dword [esp + 0xe0], ebx
jb 0x4aa053
mov eax, dword [esp + 0xcc]
push eax
call fcn.004ca5d9
add esp, 4
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xec]
xor ecx, esp
call fcn.004e8c89
add esp, 0xfc
ret 4