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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebp, dword [esp + 0x70]
test byte [ebp + 0x34], 2
je 0x4a08c0
mov eax, dword [ebp + 0xd4]
mov ebx, dword [eax + 4]
mov eax, dword [ebp + 0x34]
and eax, 9
dec eax
je 0x4a08d2
mov eax, dword [ebp + 0xca1c]
test eax, eax
je 0x4a0900
mov edx, dword [esp + 0x74]
cmp edx, dword [ebp + 0xca18]
jne 0x4a0bcc
cmp dword [esp + 0x78], eax
jne 0x4a0bcc
mov eax, dword [ebp + 0xca20]
mov ebx, dword [ebp + 0xca14]
sub ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
lea eax, [ebp + eax + 0x415c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x11c]
mov dword [esp], eax
call dword [ebp + 0x24]
cmp ebx, eax
je 0x4a0bdc
test eax, eax
js 0x4a0c28
add dword [ebp + 0xca20], eax
cmp ebx, eax
jle 0x4a0bf0
mov eax, 0xffffffdb
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 8
mov eax, dword [ebp + 0x34]
and eax, 9
dec eax
jne 0x4a0837
lea eax, [ebp + 0xcb64]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.004a4418
test eax, eax
jne 0x4a08b7
mov eax, dword [ebp + 0xca1c]
test eax, eax
jne 0x4a0845
nop
and dword [ebp + 0x124], 0xfffffffd
mov edx, dword [ebp + 0x34]
mov esi, edx
shr esi, 1
and esi, 1
mov dword [esp + 0x34], esi
mov eax, dword [ebp + 0xe8]
test eax, eax
je 0x4a092a
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4a0a40
mov edx, dword [esp + 0x80]
add edx, dword [esp + 0x78]
cmp edx, 0x87b7
ja 0x4a0cfc
lea eax, [ebp + 0x134]
mov dword [esp + 0x38], eax
lea eax, [ebp + 0x4161]
mov edi, eax
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4a0974
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x4a0c04
lea esi, [edx + 5]
mov eax, esi
xor edx, edx
div ebx
mov eax, ebx
sub eax, edx
cmp eax, 3
jg 0x4a0988
add eax, ebx
lea ebx, [eax + esi]
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x4a0acc
mov dword [esp + 0x34], ebx
lea edx, [ebp + 0x415c]
mov dword [esp + 0x30], edx
mov edx, ebx
sub edx, 4
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
mov dword [esp + 0x28], eax
call fcn.0049fcb0
mov eax, dword [esp + 0x28]
mov byte [ebp + 0x4160], al
mov dword [esp + 4], eax
mov edx, dword [esp + 0x38]
lea eax, [edx + esi + 0x4028]
mov dword [esp], eax
call fcn.004bf010
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
inc dword [ebp + 0xe0]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov eax, dword [ebp + 0x11c]
mov dword [esp], eax
call dword [ebp + 0x24]
cmp dword [esp + 0x34], eax
je 0x4a0c50
test eax, eax
jns 0x4a0c6c
cmp eax, 0xfffffff5
je 0x4a0c6c
mov eax, 0xfffffff9
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
and edx, 4
je 0x4a0c40
cmp dword [esp + 0x34], 0
je 0x4a092a
mov dword [esp + 0x48], 0x87b3
mov dword [esp + 0x4c], 0x87b3
lea esi, [ebp + 0xec]
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x48]
mov dword [esp + 8], edx
lea ecx, [ebp + 0x134]
mov dword [esp + 0x38], ecx
lea edx, [ebp + 0x4161]
mov dword [esp + 4], edx
mov dword [esp], ebp
call dword [eax + 0x10]
test eax, eax
jne 0x4a08b7
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4a0abf
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x4a0ca9
xor edx, edx
add edx, dword [esp + 0x48]
jmp 0x4a0974
mov edx, dword [ebp + 0xdc]
mov edx, dword [edx + 4]
add edx, ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], edx
lea edx, [ebp + 0x415c]
mov dword [esp + 0x30], edx
lea edx, [ebx - 4]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
mov dword [esp + 0x28], eax
call fcn.0049fcb0
mov eax, dword [esp + 0x28]
mov byte [ebp + 0x4160], al
mov dword [esp + 4], eax
mov edx, dword [esp + 0x38]
lea eax, [edx + esi + 0x4028]
mov dword [esp], eax
call fcn.004bf010
mov eax, dword [ebp + 0xdc]
lea edx, [ebp + 0xe4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp + 0xe0]
mov dword [esp + 8], edx
mov esi, dword [esp + 0x38]
lea edx, [esi + ebx + 0x4028]
mov dword [esp + 4], edx
mov dword [esp], ebp
call dword [eax + 0x10]
test ebx, ebx
je 0x4a09e7
mov eax, dword [ebp + 0xd4]
mov ecx, dword [eax + 4]
xor edi, edi
lea esi, [ebp + 0xd8]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x38]
jmp 0x4a0ba5
mov eax, dword [ebp + 0xd4]
mov ecx, dword [eax + 4]
add edi, ecx
cmp dword [esp + 0x2c], edi
jbe 0x4a09e7
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
lea ecx, [ebx + edi + 0x4028]
mov dword [esp + 4], ecx
mov dword [esp], ebp
call dword [eax + 0x18]
test eax, eax
je 0x4a0b90
mov eax, 0xffffffd4
jmp 0x4a08b7
mov eax, 0xffffffd9
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 0xca14], 0
mov dword [ebp + 0xca1c], 0
and dword [ebp + 0x124], 0xfffffffd
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x78]
lea eax, [esi + ecx + 0x402d]
mov edi, eax
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
rep movsb byte es:[edi], byte [esi]
jmp 0x4a0974
cmp eax, 0xfffffff5
jne 0x4a0a30
or dword [ebp + 0x124], 2
mov al, 0xdb
jmp 0x4a08b7
mov edx, dword [eax + 8]
test edx, edx
jne 0x4a0a49
jmp 0x4a092a
mov dword [ebp + 0xca18], 0
mov dword [ebp + 0xca1c], 0
xor eax, eax
jmp 0x4a08b7
or dword [ebp + 0x124], 2
mov esi, dword [esp + 0x74]
mov dword [ebp + 0xca18], esi
mov edx, dword [esp + 0x78]
mov dword [ebp + 0xca1c], edx
test eax, eax
js 0x4a0ca5
mov dword [ebp + 0xca20], eax
mov ecx, dword [esp + 0x34]
mov dword [ebp + 0xca14], ecx
mov eax, 0xffffffdb
jmp 0x4a08b7
xor eax, eax
jmp 0x4a0c8b
mov eax, dword [esp + 0x48]
sub dword [esp + 0x4c], eax
mov edx, dword [ebp + 0xe8]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 8], ecx
mov esi, dword [esp + 0x38]
lea eax, [esi + eax + 0x402d]
mov dword [esp + 4], eax
mov dword [esp], ebp
call dword [edx + 0x10]
test eax, eax
jne 0x4a08b7
mov edx, dword [esp + 0x4c]
jmp 0x4a0ac1
mov eax, 0xffffffde
jmp 0x4a08b7