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

Disassembly:
push 0xffffffffffffffff
push 0x495338
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x4c87c0]
xor eax, esp
mov dword [esp + 0x2bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c87c0]
xor eax, esp
push eax
lea eax, [esp + 0x2d4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2e4]
mov ebp, ecx
push 0x49e648
lea ecx, [esp + 0x1c]
call fcn.004a797a
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x2dc], ebx
jle 0x4a7aab
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a4e4a
jmp 0x4a7b29
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x4c9f88
call fcn.004a8b1a
push 1
push 0x104
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x2e8], 1
call fcn.004b518a
lea eax, [esp + 0xc8]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a7aea
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x20]
call fcn.004a4e4a
push 0x49e63c
lea ecx, [esp + 0x1c]
call fcn.004a77aa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2dc], bl
call fcn.004b525a
mov esi, 7
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], bx
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov byte [esp + 0x2dc], 4
or ecx, eax
jge 0x4a7b8d
push ebx
lea ecx, [esp + 0x1c]
call fcn.004a473a
mov edx, dword [esp + 0x18]
xor ecx, ecx
cmp word [edx], bx
mov eax, edx
je 0x4a7ba5
lea esp, [esp]
add eax, 2
add ecx, 1
cmp word [eax], bx
jne 0x4a7b9a
push ecx
push edx
lea ecx, [esp + 0x7c]
call fcn.004a75ca
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, 0x4c9fac
mov byte [esp + 0x1f], 1
call fcn.004b234a
test al, al
jne 0x4a7bd1
mov byte [esp + 0x17], bl
cmp byte [esp + 0x2e8], bl
je 0x4a7be3
mov byte [0x4c6160], 1
jmp 0x4a7bef
cmp byte [0x4c6160], bl
je 0x4a7dba
cmp dword [esp + 0x6c], ebx
je 0x4a7dba
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
lea edi, [ebp + 0x100]
push edx
mov ecx, edi
call fcn.004a74da
mov ecx, dword [ebp + 0x12c]
call fcn.004b0bda
push edi
mov ecx, 0x4c9fac
call fcn.004b1d1a
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
mov ecx, dword [ebp + 0x12c]
lea eax, [esp + 0x90]
push eax
push ebx
mov byte [esp + 0x2e4], 5
call fcn.004b0d3a
xor esi, esi
cmp dword [esp + 0x1c], ebx
jle 0x4a7d55
lea esp, [esp]
mov eax, 7
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push edi
mov ecx, 0x4c9fac
mov byte [esp + 0x2ec], al
call fcn.004b258a
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4a7cb5
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x34]
push ecx
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.004a63aa
test eax, eax
je 0x4a7ce5
mov ecx, dword [ebp + 0x12c]
lea eax, [esp + 0x3c]
lea edx, [esi + 1]
push eax
mov dword [ebp + 0x11c], edx
call fcn.004b0d0a
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x12c]
push esi
call fcn.004b0d3a
cmp dword [esp + 0x54], 8
jb 0x4a7d0a
mov edx, dword [esp + 0x40]
push edx
call fcn.004c4797
add esp, 4
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov byte [esp + 0x2dc], 5
jb 0x4a7d37
mov eax, dword [esp + 0x24]
push eax
call fcn.004c4797
add esp, 4
add esi, 1
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jl 0x4a7c6a
mov ecx, dword [ebp + 0x12c]
push ebx
call fcn.004b0c2a
cmp byte [esp + 0x17], bl
jne 0x4a7d6d
mov dword [ebp + 0x11c], ebx
mov edi, 8
cmp dword [esp + 0xa8], edi
mov byte [0x4c6160], bl
mov byte [esp + 0x2dc], 4
jb 0x4a7d99
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004c4797
add esp, 4
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
mov esi, 7
jmp 0x4a7dbf
mov edi, 8
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
mov ecx, ebp
call fcn.004d88f0
lea ecx, [ebp + 0x98]
call fcn.004d0530
cmp dword [esp + 0x70], edi
jb 0x4a7dee
mov eax, dword [esp + 0x5c]
push eax
call fcn.004c4797
add esp, 4
cmp dword [esp + 0x8c], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x4a7e11
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004c4797
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov dword [esp + 0x2dc], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a7e4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call 0x508e32
add esp, 0x2cc
ret 8