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

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov eax, dword [eax]
mov edx, dword [edx]
mov dword [esp + 0x18], eax
mov eax, dword [0x594508]
mov dword [esp + 4], edx
mov dword [esp + 0x38], edx
test eax, eax
je 0x4efdde
call eax
test eax, eax
je 0x4efdda
mov eax, dword [esp + 0x70]
mov dword [eax], 0x55
xor eax, eax
add esp, 0x60
ret
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x80]
push ebp
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x60], eax
push esi
lea eax, [ebx + 6]
mov dword [esp + 0x68], edx
push edi
mov edi, 0xfffffffe
mov dword [esp + 0x10], eax
cmp byte [edx], 0x85
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
jne 0x4efe53
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x60], eax
xor eax, eax
mov word [esp + 0x66], ax
lea eax, [esp + 0x60]
mov dword [esp + 0x44], ecx
mov word [esp + 0x64], cx
mov dword [ebp + 0x24], eax
lea eax, [edx + 1]
add ebx, 3
mov byte [eax], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], eax
add ebx, edx
lea eax, [edx + 2]
xor edx, edx
mov byte [eax], 0
cmp dword [esp + 0xac], edx
mov esi, dword [ebp + 0x40]
mov dword [esp + 0x5c], eax
cmove ecx, edx
mov eax, esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
cmp dword [esp + 0x88], 0
mov dword [esp + 0x1c], ebx
je 0x4efe9a
mov dword [ebp + 0x40], eax
cmp dword [esp + 0x84], 0
je 0x4efebd
mov byte [ebx], 0x7c
inc ebx
mov dword [esp + 0x40], ebx
mov word [ebx], 0
add ebx, 2
add dword [esp + 0x10], 3
mov dword [esp + 0x1c], ebx
push ecx
push ebp
push dword [esp + 0x98]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0xa0]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.004eba20
add esp, 0x30
test eax, eax
je 0x4f00ab
cmp dword [ebp + 0x40], esi
mov eax, dword [esp + 0xac]
cmova esi, dword [ebp + 0x40]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], esi
test eax, eax
jne 0x4f0023
cmp byte [edx], 0x77
je 0x4eff51
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x4effc6
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
test ecx, ecx
js 0x4eff81
cmp ecx, eax
jne 0x4eff6b
cmp dword [esp + 0x2c], esi
je 0x4eff99
test edi, edi
jns 0x4eff79
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], edi
mov edi, ecx
mov dword [esp + 0x30], 0xffffffff
test eax, eax
js 0x4eff99
mov ecx, dword [esp + 0x18]
test ecx, ecx
jns 0x4eff9d
mov ecx, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], ecx
jmp 0x4eff9d
mov ecx, dword [esp + 0x18]
mov eax, ecx
xor eax, edi
test eax, 0xfffffffd
jne 0x4effbe
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x20], eax
jne 0x4effbe
or edi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
jmp 0x4effc6
mov dword [esp + 0x24], 0xffffffff
cmp dword [esp + 0x84], 0
je 0x4f001c
mov eax, dword [esp + 0x74]
push ebp
shr eax, 0xb
push 0
and eax, 1
mov byte [ebx], 0
push eax
push edx
call fcn.004f0950
mov ecx, eax
add esp, 0x10
cmp ecx, 0xfffffffd
jne 0x4efffa
mov dword [ebp + 0x74], 1
jmp 0x4f0018
test ecx, ecx
js 0x4f0088
cmp ecx, dword [ebp + 0x48]
jle 0x4f000a
mov dword [ebp + 0x48], ecx
mov edx, dword [esp + 0x40]
mov eax, ecx
sar eax, 8
mov byte [edx], al
mov byte [edx + 1], cl
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xac]
mov esi, dword [esp + 0x28]
cmp byte [esi], 0x7c
jne 0x4f00bf
test eax, eax
je 0x4f004d
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x8c]
add ebx, 3
mov eax, dword [eax]
add ebx, eax
add dword [esp + 0x10], 3
jmp 0x4f006e
mov eax, ebx
mov byte [ebx], 0x77
sub eax, edx
mov edi, ebx
sar eax, 8
mov byte [ebx + 1], al
mov al, bl
sub al, dl
mov dword [esp + 0x14], edi
mov byte [ebx + 2], al
mov dword [esp + 0x6c], ebx
add ebx, 3
mov edi, dword [esp + 0x24]
inc esi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x4c]
jmp 0x4efe89
cmp ecx, 0xfffffffe
jne 0x4f0092
lea eax, [ecx + 0x26]
jmp 0x4f00a2
cmp ecx, 0xfffffffc
mov eax, 0x19
mov edx, 0x46
cmove eax, edx
mov ecx, dword [esp + 0x80]
mov dword [ecx], eax
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x60
ret
test eax, eax
jne 0x4f00f0
mov edi, dword [esp + 0x14]
mov edx, ebx
sub edx, edi
nop dword [eax + eax]
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
mov byte [edi + 2], dl
mov eax, edx
mov edx, ecx
sar eax, 8
mov byte [edi + 1], al
sub edi, ecx
test ecx, ecx
jg 0x4f00d0
mov ecx, dword [esp + 0x48]
mov eax, ebx
sub eax, ecx
mov byte [ebx], 0x78
sar eax, 8
mov byte [ebx + 1], al
mov al, bl
sub al, cl
mov byte [ebx + 2], al
add ebx, 3
cmp dword [esp + 0x44], 0
jle 0x4f017e
mov eax, dword [ebp + 0x24]
cmp word [eax + 6], 0
je 0x4f0170
mov eax, ebx
sub eax, ecx
push eax
push ecx
lea eax, [ecx + 3]
push eax
call fcn.004b7f80
mov edx, dword [esp + 0x54]
add ebx, 3
mov eax, dword [esp + 0x64]
mov ecx, ebx
sub ecx, edx
add esp, 0xc
sar ecx, 8
mov byte [edx], 0x81
mov byte [eax], cl
mov al, bl
sub al, dl
mov edx, dword [esp + 0x5c]
mov byte [edx], al
mov byte [ebx], 0x78
mov byte [ebx + 1], cl
mov byte [ebx + 2], al
add ebx, 3
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x24]
add ecx, 6
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
mov dword [ebp + 0x24], eax
jmp 0x4f0182
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [ebp + 0x24], eax
jmp 0x4f0182
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x40], eax
mov eax, dword [esp + 0x78]
mov dword [eax], ebx
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0xac]
mov dword [eax], esi
mov eax, dword [esp + 0x94]
mov esi, dword [esp + 0x30]
mov dword [eax], edx
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x20]
mov dword [eax], esi
mov eax, dword [esp + 0x9c]
mov dword [eax], edx
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x24]
mov dword [eax], edx
test ebx, ebx
je 0x4f01fd
mov edx, dword [ebx]
mov eax, 0x7fffffeb
sub eax, edx
cmp eax, ecx
jge 0x4f01f8
mov eax, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov dword [eax], 0x14
xor eax, eax
pop ebx
add esp, 0x60
ret
lea eax, [edx + ecx]
mov dword [ebx], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret