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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2a4
mov eax, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x2b8]
mov dword [esp + 0x3c], 0
mov esi, ecx
mov edi, edx
mov dword [esp + 0x4c], 0
mov word [esp + 0x50], 0
mov dword [esp + 0x40], 7
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0
lea ecx, [esp + 8]
or eax, 0x2000000
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
push ebp
push edx
push ecx
call fcn.004c5160
add esp, 0x10
movzx eax, byte [esp + 8]
test eax, eax
je 0x4c57b8
cmp eax, 4
jne 0x4c57f3
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x54]
mov dword [esp + 0x54], edi
push eax
push esi
call fcn.004c5390
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4c589a
mov eax, dword [esp + 0xc]
cmp eax, 5
je 0x4c57c6
cmp eax, 0x20
jne 0x4c57f3
mov ecx, dword [esp + 8]
lea ebx, [esp + 0x54]
mov dword [esp], eax
mov edx, edi
mov dword [esp + 4], ecx
mov ecx, ebx
push ebp
call fcn.004c9a00
add esp, 4
cmp dword [esp + 0x54], 0
je 0x4c5813
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
jmp 0x4c584e
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xc], ecx
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 2
jmp 0x4c589a
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push 1
push eax
push ecx
call fcn.004bd460
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x4c58a5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp byte [esp + 4], 3
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 4], 0
mov dword [esi], 2
jne 0x4c589a
mov esi, dword [esp]
mov eax, dword [esi + 4]
push dword [esi]
call dword [eax]
add esp, 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4c588d
push dword [ecx + 8]
push eax
push dword [esi]
call fcn.0040dc90
add esp, 0xc
push 4
push 0xc
push esi
call fcn.0040dc90
add esp, 0xc
add esp, 0x2a4
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
push 0x250
push 0
push ebx
call fcn.004f7770
add esp, 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4c5935
mov dword [esp + 0x10], ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x54]
movups xmm0, xmmword [esp + 0x58]
movsd xmm1, qword [esp + 0x68]
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov ecx, eax
shl ecx, 0x15
sar ecx, 0x1f
and ecx, dword [esp + 0x78]
cmp dword [esp + 0x2bc], 0
je 0x4c5962
mov dword [esi + 4], 0
mov dword [esi], 0
movups xmmword [esi + 0x10], xmm0
movlps qword [esi + 0x20], xmm1
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
mov bl, 1
jmp 0x4c598f
mov eax, dword [esp + 4]
mov ecx, dword [esp]
test edi, edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 4], 0
mov dword [esi], 2
je 0x4c589a
add edi, edi
push 2
push edi
push ebp
jmp 0x4c5892
test eax, 0x400
je 0x4c5902
mov ebx, ecx
and ebx, 0x20000000
je 0x4c5902
mov eax, dword [esp + 4]
mov ecx, dword [esp]
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 4], 0
mov dword [esi], 2
mov eax, dword [esp + 0x10]
test edi, edi
je 0x4c59a5
add edi, edi
push 2
push edi
push eax
call fcn.0040dc90
add esp, 0xc
cmp byte [esp + 4], 3
sete al
and bl, al
cmp bl, 1
je 0x4c5868
jmp 0x4c589a