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

Disassembly:
push 0xffffffffffffffff
push 0x4fe950
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x56a5a0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a5a0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x7c]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ecx
call fcn.004a06a0
push eax
mov dword [esp + 0x60], 0
call fcn.004a6d30
mov ebp, dword [esp + 0x30]
add esp, 4
mov esi, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x5c], 0xffffffff
test ebp, ebp
je 0x4a7bf4
push 0
lea ecx, [esp + 0x18]
call fcn.004acec7
mov eax, dword [ebp + 4]
test eax, eax
jbe 0x4a7bd2
cmp eax, 0xffffffff
jae 0x4a7bd2
dec eax
mov dword [ebp + 4], eax
mov edi, dword [ebp + 4]
neg edi
sbb edi, edi
not edi
lea ecx, [esp + 0x14]
and edi, ebp
call fcn.004aceef
test edi, edi
je 0x4a7bf4
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.004a35f0
mov al, byte [ebx]
mov ecx, 1
mov dword [esp + 0x5c], ecx
cmp al, 0x2b
je 0x4a7c36
cmp al, 0x2d
je 0x4a7c36
cmp al, 0x30
jne 0x4a7c2c
mov al, byte [ebx + 1]
cmp al, 0x78
je 0x4a7c22
cmp al, 0x58
jne 0x4a7c2c
mov dword [esp + 0x14], 2
jmp 0x4a7c3a
mov dword [esp + 0x14], 0
jmp 0x4a7c3a
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov eax, edx
cmp ecx, 0x10
jae 0x4a7c4d
lea eax, [esp + 0x38]
cmp byte [eax], 0x7f
je 0x4a7cd0
mov eax, edx
cmp ecx, 0x10
jae 0x4a7c5d
lea eax, [esp + 0x38]
cmp byte [eax], 0
jle 0x4a7cd0
cmp ecx, 0x10
jb 0x4a7c6d
mov dword [esp + 0x24], edx
jmp 0x4a7c75
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x24]
mov al, byte [edx]
mov ebp, dword [esp + 0x80]
mov esi, ebp
cmp al, 0x7f
je 0x4a7cd7
test al, al
jle 0x4a7cd7
mov ecx, esi
sub ecx, dword [esp + 0x14]
movsx eax, al
cmp eax, ecx
jae 0x4a7cd7
sub esi, eax
mov edx, ebp
sub edx, esi
lea eax, [edx + 1]
push eax
lea edi, [ebx + esi]
push edi
push eax
lea eax, [ebx + esi + 1]
push eax
call fcn.004c9dfe
mov eax, dword [esp + 0x34]
add esp, 0x10
mov byte [edi], 0
inc ebp
cmp byte [eax + 1], 0
jle 0x4a7cc8
inc eax
mov dword [esp + 0x24], eax
mov al, byte [eax]
cmp al, 0x7f
jne 0x4a7c88
jmp 0x4a7cd7
mov ebp, dword [esp + 0x80]
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 0x18]
test edi, edi
jle 0x4a7cea
cmp edi, ebp
jbe 0x4a7cea
sub edi, ebp
jmp 0x4a7cec
xor edi, edi
mov esi, dword [esp + 0x64]
mov edx, ecx
mov eax, dword [edx + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x4a7d98
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
cmp eax, 0x100
je 0x4a7d3a
mov eax, dword [esp + 0x78]
push edi
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004a2df0
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
add esp, 0x18
mov dword [esp + 0x70], edx
jmp 0x4a7d96
mov eax, dword [esp + 0x14]
push eax
push ebx
push ecx
push edx
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004a2e60
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 4]
push edi
add ebx, ecx
sub ebp, ecx
mov ecx, dword [esp + 0x94]
push ecx
mov dword [esp + 0x90], edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.004a2df0
mov edx, dword [eax]
mov dword [esp + 0x9c], edx
mov eax, dword [eax + 4]
add esp, 0x30
mov dword [esp + 0x70], eax
xor edi, edi
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov edx, dword [esp + 0x70]
mov byte [esp + 0x20], al
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
push ecx
push ebp
push ebx
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.004a2ed0
mov ecx, dword [eax]
mov edx, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x8c], ecx
mov eax, dword [eax + 4]
mov dword [edx + 0x18], 0
mov edx, dword [esp + 0x98]
push edx
push eax
push ecx
push edi
push esi
mov dword [esp + 0xa4], eax
call fcn.004a2df0
add esp, 0x34
cmp dword [esp + 0x4c], 0x10
jb 0x4a7e0e
mov eax, dword [esp + 0x38]
push eax
call fcn.004c9b42
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004c9b4d
add esp, 0x4c
ret