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

Disassembly:
push 0xffffffffffffffff
push 0x5fe5c1
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70b744]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xd4]
xor ebp, ebp
push 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], ebp
call fcn.004960c0
lea edx, [esp + 0x4c]
mov eax, ebx
call fcn.004a5cd0
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
add esi, esi
add esi, esi
push esi
push ebp
push edi
mov byte [esp + 0x27], al
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a69d8
call fcn.0052568b
jmp 0x4a69dd
call fcn.0051e45a
add esp, 4
cmp byte [esp + 0x1b], 0
jne 0x4a711a
cmp dword [ebx + 8], ebp
jbe 0x4a69f9
mov eax, dword [ebx + 0xc]
mov al, byte [eax]
and al, 1
jne 0x4a6a21
push 2
lea ecx, [esp + 0x28]
call fcn.004960c0
lea edx, [esp + 0x24]
mov eax, ebx
call fcn.0047f370
lea ecx, [esp + 0x24]
mov bl, al
call fcn.0047f330
mov al, bl
jmp 0x4a711c
push 3
lea ecx, [esp + 0x64]
call fcn.004960c0
mov dword [esp + 0xcc], ebp
mov dword [esp + 0x1c], ebp
jmp 0x4a6a40
push 4
lea ecx, [esp + 0x50]
call fcn.004960c0
lea esi, [esp + 0x38]
lea eax, [esp + 0x60]
mov byte [esp + 0xcc], 1
call fcn.0047f310
mov edi, eax
lea eax, [esp + 0x4c]
lea esi, [esp + 0x24]
mov byte [esp + 0xcc], 2
call fcn.0047f520
push eax
mov ecx, ebx
mov byte [esp + 0xd0], 3
call fcn.004a8bb0
mov esi, dword [esp + 0x30]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x30]
cmp edi, 1
sete byte [esp + 0x1b]
add esi, esi
add esi, esi
push esi
push 0
push eax
mov ebp, eax
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push ebp
jb 0x4a6abb
call fcn.0052568b
jmp 0x4a6ac0
call fcn.0051e45a
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push eax
mov ebp, eax
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push ebp
jb 0x4a6aea
call fcn.0052568b
jmp 0x4a6aef
call fcn.0051e45a
mov byte [esp + 0xd0], 0
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push ebp
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push ebp
jb 0x4a6b1f
call fcn.0052568b
jmp 0x4a6b24
call fcn.0051e45a
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x4a6b66
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 0x40
mov dword [esp + 0x1c], eax
jne 0x4a6b4d
mov ecx, ebx
call fcn.00498a80
test al, al
jne 0x4a7075
lea ecx, [esp + 0x60]
push ecx
call fcn.00497820
lea edx, [esp + 0x60]
push edx
call fcn.00497820
jmp 0x4a6a40
test edi, edi
je 0x4a7075
push 1
lea ecx, [esp + 0x28]
call fcn.004960c0
lea eax, [esp + 0x24]
mov edi, ebx
lea esi, [esp + 0x74]
mov byte [esp + 0xcc], 4
call fcn.0047f500
lea ecx, [esp + 0x24]
mov byte [esp + 0xcc], 6
call fcn.0047f330
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
xor edx, edx
mov edi, edi
mov eax, edx
shr eax, 5
cmp eax, edi
jae 0x4a6bc7
mov eax, dword [esi + eax*4]
mov ecx, edx
and ecx, 0x1f
shr eax, cl
and al, 1
jne 0x4a6bcc
add edx, 1
jmp 0x4a6bb0
mov ecx, edx
mov dword [esp + 0x20], edx
push ecx
lea edx, [esp + 0x78]
push edx
lea edi, [esp + 0x54]
call fcn.004898b0
mov ebp, dword [esp + 0xd4]
lea eax, [esp + 0x60]
push eax
mov ecx, edi
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
mov byte [esp + 0xd8], 7
call fcn.004a8e10
add esp, 0xc
push 2
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd0], 8
call fcn.004960c0
mov byte [esp + 0xcc], 9
mov ebx, 1
lea edx, [esp + 0x9c]
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], ebx
call fcn.0047f370
test al, al
jne 0x4a6c8b
push 2
lea ecx, [esp + 0x28]
call fcn.004960c0
mov dword [esp + 0xcc], 0xa
lea eax, [esp + 0x24]
mov edi, ebp
lea esi, [esp + 0x88]
mov dword [esp + 0x1c], 3
call fcn.0047f520
mov edx, eax
lea eax, [esp + 0x38]
mov ebx, 7
call fcn.0047f370
test al, al
mov byte [esp + 0x1b], 0
je 0x4a6c90
mov byte [esp + 0x1b], 1
test bl, 4
je 0x4a6ca4
lea ecx, [esp + 0x88]
and ebx, 0xfffffffb
call fcn.0047f330
test bl, 2
je 0x4a6cb5
lea ecx, [esp + 0x24]
and ebx, 0xfffffffd
call fcn.0047f330
test bl, 1
mov dword [esp + 0xcc], 8
je 0x4a6cd1
lea ecx, [esp + 0x9c]
call fcn.0047f330
cmp byte [esp + 0x1b], 0
je 0x4a6d03
lea ecx, [esp + 0x38]
call fcn.0047f330
lea ecx, [esp + 0x4c]
call fcn.0047f330
lea ecx, [esp + 0x74]
call fcn.0047f330
lea ecx, [esp + 0x60]
call fcn.0047f330
mov al, 1
jmp 0x4a711c
mov eax, 1
cmp dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
jbe 0x4a6f63
jmp 0x4a6d20
push 2
lea ecx, [esp + 0x28]
call fcn.004960c0
lea esi, [esp + 0x88]
lea eax, [esp + 0x38]
mov byte [esp + 0xcc], 0xb
call fcn.0047f310
mov edi, eax
lea eax, [esp + 0x24]
lea esi, [esp + 0xb0]
mov byte [esp + 0xcc], 0xc
call fcn.0047f520
mov ecx, eax
mov eax, ebp
lea esi, [esp + 0x9c]
mov byte [esp + 0xcc], 0xd
call fcn.0047f580
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd0], 0xe
call fcn.00496340
mov esi, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
add esi, esi
add esi, esi
push esi
push 0
push eax
mov edi, eax
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a6db4
call fcn.0052568b
jmp 0x4a6db9
call fcn.0051e45a
mov esi, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push eax
mov edi, eax
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a6de9
call fcn.0052568b
jmp 0x4a6dee
call fcn.0051e45a
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push eax
mov edi, eax
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a6e1e
call fcn.0052568b
jmp 0x4a6e23
call fcn.0051e45a
mov byte [esp + 0xd0], 8
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a6e53
call fcn.0052568b
jmp 0x4a6e58
call fcn.0051e45a
add esp, 4
push 2
lea ecx, [esp + 0x28]
call fcn.004960c0
lea eax, [esp + 0x24]
mov edi, ebp
lea esi, [esp + 0x88]
mov byte [esp + 0xcc], 0xf
call fcn.0047f520
mov edx, eax
lea eax, [esp + 0x38]
call fcn.0047f370
mov esi, dword [esp + 0x90]
add esi, esi
add esi, esi
push esi
mov bl, al
mov eax, dword [esp + 0x98]
push 0
push eax
mov edi, eax
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a6eba
call fcn.0052568b
jmp 0x4a6ebf
call fcn.0051e45a
mov byte [esp + 0xd0], 8
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a6eef
call fcn.0052568b
jmp 0x4a6ef4
call fcn.0051e45a
add esp, 4
test bl, bl
jne 0x4a6f8f
push 2
lea ecx, [esp + 0x28]
call fcn.004960c0
lea edx, [esp + 0x24]
lea eax, [esp + 0x38]
call fcn.0047f370
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
add esi, esi
add esi, esi
push esi
push 0
push edi
mov bl, al
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a6f3e
call fcn.0052568b
jmp 0x4a6f43
call fcn.0051e45a
add esp, 4
test bl, bl
jne 0x4a705a
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jb 0x4a6d20
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a7083
call fcn.0052568b
jmp 0x4a7088
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a6fb4
call fcn.0052568b
jmp 0x4a6fb9
call fcn.0051e45a
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a6fe1
call fcn.0052568b
jmp 0x4a6fe6
call fcn.0051e45a
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push eax
mov edi, eax
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a7016
call fcn.0052568b
jmp 0x4a701b
call fcn.0051e45a
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a704b
call fcn.0052568b
add esp, 4
mov al, 1
jmp 0x4a711c
call fcn.0051e45a
add esp, 4
mov al, 1
jmp 0x4a711c
lea ecx, [esp + 0x38]
call fcn.0047f330
lea ecx, [esp + 0x4c]
call fcn.0047f330
lea ecx, [esp + 0x74]
call fcn.0047f330
lea ecx, [esp + 0x60]
call fcn.0047f330
jmp 0x4a711a
call fcn.0051e45a
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a70b0
call fcn.0052568b
jmp 0x4a70b5
call fcn.0051e45a
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push eax
mov edi, eax
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a70e5
call fcn.0052568b
jmp 0x4a70ea
call fcn.0051e45a
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a7112
call fcn.0052568b
jmp 0x4a7117
call fcn.0051e45a
add esp, 4
xor al, al
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret