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

Disassembly:
push 0xffffffffffffffff
push 0x5fe0b3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70b744]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa8]
xor ebx, ebx
push 3
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.004960c0
lea edx, [esp + 0x1c]
mov eax, ebp
call fcn.004a5cd0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add esi, esi
add esi, esi
push esi
push ebx
push edi
mov byte [esp + 0x23], al
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a60f8
call fcn.0052568b
jmp 0x4a60fd
call fcn.0051e45a
add esp, 4
cmp byte [esp + 0x17], bl
je 0x4a6185
push 2
lea ecx, [esp + 0x60]
call fcn.004960c0
mov dword [esp + 0xa0], 0
mov ebx, 1
lea edx, [esp + 0x5c]
mov eax, ebp
mov dword [esp + 0x18], ebx
call fcn.0047f370
test al, al
jne 0x4a6158
push 3
lea ecx, [esp + 0x20]
call fcn.004960c0
lea edx, [esp + 0x1c]
mov eax, ebp
mov ebx, 3
call fcn.0047f370
test al, al
mov byte [esp + 0x17], 0
je 0x4a615d
mov byte [esp + 0x17], 1
test bl, 2
je 0x4a616e
lea ecx, [esp + 0x1c]
and ebx, 0xfffffffd
call fcn.0047f330
test bl, 1
je 0x4a617c
lea ecx, [esp + 0x5c]
call fcn.0047f330
mov al, byte [esp + 0x17]
jmp 0x4a6657
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x4a6195
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
and al, 1
jne 0x4a61c3
push 2
lea ecx, [esp + 0x20]
call fcn.004960c0
mov dword [esp + 0xa0], 1
mov ebx, 4
lea edx, [esp + 0x1c]
mov eax, ebp
mov dword [esp + 0x18], ebx
call fcn.0047f3c0
test al, al
jne 0x4a620e
push 1
lea ecx, [esp + 0x60]
call fcn.004960c0
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xa4], 2
or ebx, 8
mov eax, ebp
mov dword [esp + 0x1c], ebx
call fcn.0049c6a0
add esp, 4
lea edx, [esp + 0x5c]
or ebx, 0x10
call fcn.0047f3c0
test al, al
mov byte [esp + 0x17], 0
je 0x4a6213
mov byte [esp + 0x17], 1
test bl, 0x10
je 0x4a6227
lea ecx, [esp + 0x84]
and ebx, 0xffffffef
call fcn.0047f330
test bl, 8
je 0x4a6238
lea ecx, [esp + 0x5c]
and ebx, 0xfffffff7
call fcn.0047f330
test bl, 4
mov dword [esp + 0xa0], 0xffffffff
je 0x4a6254
lea ecx, [esp + 0x1c]
and ebx, 0xfffffffb
call fcn.0047f330
cmp byte [esp + 0x17], 0
jne 0x4a6655
push 1
lea ecx, [esp + 0x60]
call fcn.004960c0
lea eax, [esp + 0x5c]
mov edi, ebp
lea esi, [esp + 0x44]
mov dword [esp + 0xa0], 3
call fcn.0047f520
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 5
call fcn.0047f330
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x18], 0
mov edi, dword [esp + 0x18]
lea esp, [esp]
mov eax, edi
shr eax, 5
cmp eax, edx
jae 0x4a62c7
mov eax, dword [esi + eax*4]
mov ecx, edi
and ecx, 0x1f
shr eax, cl
and al, 1
jne 0x4a62cc
add edi, 1
jmp 0x4a62b0
mov ecx, edi
push ecx
lea edx, [esp + 0x48]
mov dword [esp + 0x1c], edi
push edx
lea edi, [esp + 0x78]
call fcn.004898b0
mov ecx, dword [esp + 0xac]
mov eax, edi
push eax
push ecx
mov ecx, ebp
lea esi, [esp + 0x38]
mov byte [esp + 0xa8], 6
call fcn.00498bb0
add esp, 8
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0xa4], 7
call fcn.004960c0
or ebx, 0x20
cmp dword [esp + 0x40], 1
je 0x4a6333
cmp dword [esp + 0x2c], 1
je 0x4a634d
lea edx, [esp + 0x1c]
mov eax, esi
call fcn.004987d0
jmp 0x4a6349
cmp dword [esp + 0x2c], 1
jne 0x4a634d
lea edx, [esp + 0x1c]
lea eax, [esp + 0x30]
call fcn.004987d0
neg eax
test eax, eax
je 0x4a6363
lea edx, [esp + 0x44]
lea eax, [esp + 0x30]
call fcn.0047f370
test al, al
mov byte [esp + 0x17], 0
je 0x4a6368
mov byte [esp + 0x17], 1
test bl, 0x20
je 0x4a639a
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a6392
call fcn.0052568b
jmp 0x4a6397
call fcn.0051e45a
add esp, 4
cmp byte [esp + 0x17], 0
je 0x4a6444
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
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 0x4a63cc
call fcn.0052568b
jmp 0x4a63d1
call fcn.0051e45a
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
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 0x4a63fe
call fcn.0052568b
jmp 0x4a6403
call fcn.0051e45a
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
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 0x4a6435
call fcn.0052568b
add esp, 4
mov al, 1
jmp 0x4a6657
call fcn.0051e45a
add esp, 4
mov al, 1
jmp 0x4a6657
mov eax, 1
cmp dword [esp + 0x18], eax
mov dword [esp + 0x58], eax
jbe 0x4a65c5
jmp 0x4a6460
lea esi, [esp + 0x1c]
lea eax, [esp + 0x30]
call fcn.0047f310
mov ecx, eax
mov eax, ebp
lea esi, [esp + 0x5c]
mov byte [esp + 0xa0], 8
call fcn.0047f580
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xa4], 9
call fcn.00496340
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
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 0x4a64bb
call fcn.0052568b
jmp 0x4a64c0
call fcn.0051e45a
mov byte [esp + 0xa4], 7
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
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 0x4a64f2
call fcn.0052568b
jmp 0x4a64f7
call fcn.0051e45a
mov esi, 1
add esp, 4
cmp dword [esp + 0x40], esi
je 0x4a651a
cmp dword [esp + 0x54], esi
je 0x4a6537
lea edx, [esp + 0x44]
lea eax, [esp + 0x30]
call fcn.004987d0
jmp 0x4a652f
cmp dword [esp + 0x54], esi
jne 0x4a6537
lea edx, [esp + 0x44]
lea eax, [esp + 0x30]
call fcn.004987d0
neg eax
test eax, eax
je 0x4a63a5
push esi
lea ecx, [esp + 0x20]
call fcn.004960c0
cmp dword [esp + 0x40], esi
je 0x4a6560
cmp dword [esp + 0x2c], esi
je 0x4a655c
lea edx, [esp + 0x1c]
lea eax, [esp + 0x30]
call fcn.004987d0
jmp 0x4a657a
mov eax, esi
jmp 0x4a657a
cmp dword [esp + 0x2c], esi
je 0x4a656b
or eax, 0xffffffff
jmp 0x4a657a
lea edx, [esp + 0x1c]
lea eax, [esp + 0x30]
call fcn.004987d0
neg eax
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
test eax, eax
sete bl
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4a65a4
call fcn.0052568b
jmp 0x4a65a9
call fcn.0051e45a
add esp, 4
test bl, bl
jne 0x4a65c5
mov eax, dword [esp + 0x58]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x58], eax
jb 0x4a6460
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
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 0x4a65ec
call fcn.0052568b
jmp 0x4a65f1
call fcn.0051e45a
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
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 0x4a661e
call fcn.0052568b
jmp 0x4a6623
call fcn.0051e45a
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
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 0x4a664d
call fcn.0052568b
jmp 0x4a6652
call fcn.0051e45a
add esp, 4
xor al, al
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret