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

Disassembly:
push 0xffffffffffffffff
push 0x4af81f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
call fcn.0050d46e
lea ecx, [esp + 0x40]
mov dword [esp + 0x70], esi
call fcn.0050d46e
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 1
call fcn.0050d46e
mov ebx, dword [esp + 0x78]
mov byte [esp + 0x70], 2
mov dword [esp + 0x18], esi
mov eax, dword [ebx + 0x144]
cmp eax, esi
je 0x4ea730
mov edx, dword [eax + 4]
cmp edx, esi
jne 0x4ea3b6
xor edx, edx
jmp 0x4ea3cc
mov ecx, dword [eax + 8]
mov eax, 0x66666667
sub ecx, edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx - 1]
cmp eax, esi
jl 0x4ea730
lea ecx, [eax + eax*4]
shl ecx, 2
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jmp 0x4ea3ec
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x144]
lea edi, [esp + 0x54]
mov eax, dword [edx + 4]
lea esi, [ecx + eax]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov edi, 1
mov ecx, ebp
mov dword [ebp + 0x1f4], edi
call fcn.004fa858
mov dword [ebp + 0x204], eax
mov eax, dword [esp + 0x58]
cmp eax, 0x3e8
jae 0x4ea55e
mov edx, dword [0x4de8b0]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x54]
push eax
push ecx
push ebx
lea ecx, [edx + 0xf48]
call fcn.004f9f48
test eax, eax
je 0x4ea4d1
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
push eax
mov eax, dword [0x4de8b0]
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [eax + 0xf48]
call fcn.004f6b38
mov esi, eax
lea ecx, [esp + 0x24]
push ebx
push ecx
mov ecx, ebp
mov byte [esp + 0x78], 3
call fcn.004d1bf8
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4d66cc
push ecx
mov byte [esp + 0x80], 4
call fcn.0050d5e2
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 3
call fcn.0050d468
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 2
call fcn.0050d468
mov eax, dword [esp + 0x10]
mov edx, dword [ebp]
push eax
push 0xa
mov ecx, ebp
call dword [edx + 4]
jmp 0x4ea6bd
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
push ecx
mov ecx, dword [0x4de8b0]
lea eax, [esp + 0x34]
push edx
push eax
add ecx, 0xf48
call fcn.004f6b38
mov esi, eax
lea edx, [esp + 0x2c]
push ebx
push edx
mov ecx, ebp
mov byte [esp + 0x78], 5
call fcn.004d1bf8
mov ecx, dword [esp + 0x40]
mov edx, dword [esi]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x4d66b4
push ecx
mov byte [esp + 0x84], 6
call fcn.0050d5e2
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 5
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 2
call fcn.0050d468
mov eax, dword [esp + 0x10]
mov edx, dword [ebp]
push eax
push 0xb
mov ecx, ebp
call dword [edx + 4]
mov dword [esp + 0x18], edi
jmp 0x4ea6bd
push eax
mov ecx, ebp
call fcn.004c9598
lea ecx, [esp + 0x78]
mov esi, eax
call fcn.0050d46e
test esi, esi
mov byte [esp + 0x70], 7
je 0x4ea589
lea ecx, [esi + 8]
push ecx
lea ecx, [esp + 0x7c]
call fcn.0050d5e8
jmp 0x4ea5a0
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x78]
push edx
push 0x4d66a4
push eax
call fcn.0050d5e2
add esp, 0xc
mov eax, dword [0x4de8b0]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x54]
push ecx
push edx
push ebx
lea ecx, [eax + 0xf48]
call fcn.005001d8
test eax, eax
je 0x4ea65a
test esi, esi
je 0x4ea5cc
mov esi, dword [esi + 0x10]
jmp 0x4ea5e5
push 0x4d66a0
lea ecx, [esp + 0x3c]
call fcn.0050d630
or dword [esp + 0x14], edi
mov esi, dword [eax]
mov byte [esp + 0x70], 8
lea ecx, [esp + 0x34]
push ebx
push ecx
mov ecx, ebp
call fcn.004d1bf8
mov edx, dword [esp + 0x78]
mov eax, dword [eax]
push edx
push esi
push eax
lea ecx, [esp + 0x1c]
push 0x4d668c
push ecx
mov dword [esp + 0x84], 9
call fcn.0050d5e2
add esp, 0x14
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 8
call fcn.0050d468
mov al, byte [esp + 0x14]
mov dword [esp + 0x70], 7
test al, 1
je 0x4ea649
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
and al, 0xfe
mov dword [esp + 0x14], eax
call fcn.0050d468
mov eax, dword [esp + 0x10]
mov edx, dword [ebp]
push eax
push 0xa
mov ecx, ebp
call dword [edx + 4]
jmp 0x4ea6af
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov ecx, ebp
call fcn.004d1bf8
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x4d6674
push eax
mov byte [esp + 0x84], 0xa
call fcn.0050d5e2
add esp, 0x14
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 7
call fcn.0050d468
mov eax, dword [esp + 0x10]
mov edx, dword [ebp]
push eax
push 0xb
mov ecx, ebp
call dword [edx + 4]
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 2
call fcn.0050d468
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub ecx, 0x14
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jne 0x4ea3e8
xor esi, esi
mov dword [esp + 0x78], esi
lea esi, [ebx + 0xac]
mov dword [esp + 0x20], 3
mov eax, dword [esi - 0x1c]
test eax, eax
je 0x4ea871
mov eax, dword [esi - 0x18]
test eax, eax
jne 0x4ea871
mov ecx, ebp
call fcn.004fa858
cmp dword [esi], eax
jl 0x4ea871
mov eax, dword [esi + 4]
test eax, eax
jle 0x4ea871
mov eax, dword [ebx + 0x44]
mov ecx, dword [0x4de8b0]
cmp eax, edi
jne 0x4ea737
mov eax, dword [ecx + 0x1fc]
jmp 0x4ea73a
mov edi, 1
jmp 0x4ea6d9
mov eax, dword [ebp + 0x54]
cmp dword [esi - 0x14], eax
je 0x4ea871
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x4ea75b
push ebx
add ecx, 0xf48
call fcn.004f8738
mov dword [esp + 0x78], edi
mov ecx, ebp
mov dword [ebp + 0x1f4], edi
call fcn.004fa858
mov dword [ebp + 0x204], eax
mov ecx, dword [esi + 4]
mov edx, dword [0x4de8b0]
push ecx
lea ecx, [edx + 0xf48]
call fcn.00501dd8
mov ecx, dword [ebx + 0x18]
mov edi, eax
lea eax, [esp + 0x40]
xor edx, edx
push eax
mov eax, dword [ebp + 0x54]
cmp ecx, eax
push edi
sete dl
lea eax, [esi - 0x1c]
push edx
push eax
mov eax, dword [0x4de8b0]
push ebx
lea ecx, [eax + 0xf48]
call fcn.004f8f58
test eax, eax
je 0x4ea7c6
mov eax, dword [esp + 0x40]
mov edx, dword [ebp]
push eax
push 0xa
mov ecx, ebp
call dword [edx + 4]
jmp 0x4ea86c
mov ecx, dword [esi - 8]
mov eax, dword [0x4de8b0]
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [eax + 0xf48]
call fcn.004f6a68
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x38]
push ebx
push ecx
mov ecx, ebp
mov byte [esp + 0x78], 0xb
call fcn.004d1bf8
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax]
push edx
mov edx, dword [ecx]
lea ecx, [esi + 0xc]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push 0x4d6650
push edx
mov byte [esp + 0x88], 0xc
call fcn.0050d5e2
add esp, 0x18
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 0xb
call fcn.0050d468
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 2
call fcn.0050d468
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
push ecx
push 0xb
mov ecx, ebp
call dword [eax + 4]
test edi, edi
je 0x4ea864
mov edx, dword [0x4de8b0]
push 0
lea ecx, [edx + 0xf48]
call fcn.004ff8c8
mov dword [esp + 0x18], 1
mov edi, 1
mov eax, dword [esp + 0x20]
add esi, 0x3c
dec eax
mov dword [esp + 0x20], eax
jne 0x4ea6eb
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 0xd
call fcn.0050d468
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 0
call fcn.0050d468
lea ecx, [esp + 0x10]
mov dword [esp + 0x70], 0xffffffff
call fcn.0050d468
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4