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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [esp + 0x54], eax
xor eax, eax
push esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xa8], 0x4034b50
mov dword [esp + 0xac], 0x14
mov dword [esp + 0xb0], 8
mov word [esp + 0xb4], ax
mov dword [esp + 0xb6], eax
mov dword [esp + 0xba], eax
mov dword [esp + 0xbe], eax
mov dword [esp + 0xc2], eax
mov dword [esp + 0x78], 0x2014b50
mov word [esp + 0x7c], 0x14
mov dword [esp + 0x7e], 0x14
mov dword [esp + 0x82], 8
mov word [esp + 0x86], ax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov word [esp + 0x9c], ax
mov dword [esp + 0x9e], eax
mov dword [esp + 0xa2], eax
mov dword [esp + 0x150], 0x6054b50
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], 0x10001
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov word [esp + 0x164], ax
call fcn.004d0390
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x4cf27b
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.MSVCR120.dll_malloc]
push 0x10000
call esi
add esp, 4
mov dword [esp + 0x34], eax
push 0x10000
call esi
mov ebx, eax
add esp, 4
imul eax, dword [esp + 0x20], 0x132
mov dword [esp + 0x28], ebx
push eax
call esi
add esp, 4
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x34], 0
je 0x4cf8b7
test ebx, ebx
je 0x4cf8b7
mov ebx, eax
test ebx, ebx
je 0x4cf8b7
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], 0
test eax, eax
jle 0x4cf80d
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x5c]
sub ecx, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], ecx
mov ebx, dword [ecx + eax]
xor edx, edx
push 0
push 4
push 0x101
mov ecx, ebx
call fcn.00501940
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x4cf7d6
lea ecx, [esp + 0x68]
xor edx, edx
push 0
push ecx
mov ecx, eax
cmp byte [0x5c6a90], dl
je 0x4cf332
call fcn.00502c90
jmp 0x4cf337
call fcn.00504980
mov ecx, 7
lea esi, [esp + 0xb0]
lea edi, [esp + 0x138]
add esp, 8
cmp dword [esp + 0x5c], 0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x4cf37c
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
test eax, eax
je 0x4cf37c
cmp word [eax], 0
je 0x4cf37c
push eax
mov edx, 0x104
lea ecx, [esp + 0x274]
call fcn.0052fa00
jmp 0x4cf389
push ebx
lea ecx, [esp + 0x274]
call fcn.004d0310
add esp, 4
lea eax, [esp + 0x168]
push 0
push 0
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x284]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x168]
mov byte [esp + 0x26b], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cf3c3
mov edi, dword [esp + 0x14]
sub ecx, edx
mov word [esp + 0x14a], cx
cmp byte [0x5c6a90], al
je 0x4cf3fd
push 0
push 0
mov edx, 1
mov ecx, edi
call fcn.00502a40
add esp, 8
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
jmp 0x4cf45a
push 1
lea eax, [esp + 0x58]
mov dword [esp + 0x54], 0
push eax
push 0
push edi
mov dword [esp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
cmp ebx, 0xffffffff
jne 0x4cf452
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4cf440
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
jmp 0x4cf45a
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
jmp 0x4cf45a
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
push 0x1e
lea edx, [esp + 0x134]
mov ecx, edi
call fcn.00501ab0
add esp, 4
cmp eax, 0x1e
jne 0x4cf7d6
movzx eax, word [esp + 0x14a]
lea edx, [esp + 0x168]
push eax
mov ecx, edi
call fcn.00501ab0
movzx ecx, word [esp + 0x14e]
add esp, 4
cmp eax, ecx
jne 0x4cf7d6
lea ecx, [ebp + 0xc]
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
call fcn.004d0370
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0xc8]
sub esp, 0x18
call fcn.005475e0
add esp, 0x18
test eax, eax
jne 0x4cf800
push eax
xor edx, edx
xor ecx, ecx
call fcn.00547300
xor esi, esi
mov dword [esp + 0x142], eax
add esp, 4
mov dword [esp + 0x2c], esi
xor ecx, ecx
mov dword [esp + 0x64], 1
mov dword [esp + 0x40], ecx
mov edi, edi
mov esi, dword [esp + 0x34]
mov edx, esi
mov ecx, dword [esp + 0x18]
push 0x10000
call fcn.00501a70
mov ebx, eax
add esp, 4
mov dword [esp + 0xcc], ebx
test ebx, ebx
je 0x4cf54d
mov ecx, dword [esp + 0x13e]
mov edx, esi
push ebx
call fcn.00547320
add esp, 4
mov dword [esp + 0x13e], eax
sub ebx, 0x10000
mov dword [esp + 0xc8], esi
neg ebx
sbb ebx, ebx
and ebx, 4
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc8]
mov edx, ebx
mov dword [esp + 0xd8], 0x10000
mov dword [esp + 0xd4], eax
call fcn.00547890
cmp eax, 0xfffffffe
je 0x4cf7e3
cmp eax, 0xfffffffb
je 0x4cf7e3
mov esi, 0x10000
xor edi, edi
sub esi, dword [esp + 0xd8]
cmp dword [esp + 0x64], edi
jne 0x4cf5e3
mov eax, esi
or eax, edi
je 0x4cf622
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push esi
call fcn.00501ab0
add esp, 4
cmp eax, esi
je 0x4cf622
lea ecx, [esp + 0xc8]
mov dword [esp + 0x10], 1
call fcn.00548110
mov edi, dword [esp + 0x14]
jmp 0x4cf8bf
test edi, edi
jl 0x4cf7e3
jg 0x4cf5f6
cmp esi, 2
jb 0x4cf7e3
add esi, 0xfffffffe
mov eax, esi
adc edi, 0xffffffff
or eax, edi
je 0x4cf61a
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push esi
lea edx, [edx + 2]
call fcn.00501ab0
add esp, 4
cmp eax, esi
jne 0x4cf5c6
mov dword [esp + 0x64], 0
add dword [esp + 0x2c], esi
adc dword [esp + 0x40], edi
cmp dword [esp + 0xd8], 0
je 0x4cf561
cmp ebx, 4
jne 0x4cf510
push dword [esp + 0x18]
call fcn.00501c60
add esp, 4
mov dword [esp + 0x18], 0
lea ecx, [esp + 0xc8]
call fcn.00548110
lea edx, [esp + 0x13a]
lea ecx, [esp + 0x13c]
call fcn.004d02a0
mov eax, dword [esp + 0x68]
xor edx, edx
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov ecx, edi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x14a], eax
xor eax, eax
push ebx
mov dword [esp + 0x14a], esi
mov word [esp + 0x154], ax
call fcn.00501b80
push 0x1e
lea edx, [esp + 0x13c]
mov ecx, edi
call fcn.00501ab0
add esp, 0xc
cmp eax, 0x1e
jne 0x4cf7d6
movzx eax, word [esp + 0x14a]
mov ecx, edi
cdq
add eax, esi
adc edx, dword [esp + 0x40]
push edx
push eax
mov edx, 1
call fcn.00501b80
mov eax, dword [esp + 0x146]
lea esi, [esp + 0x80]
mov ecx, 0xb
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x40]
lea esi, [esp + 0x108]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x14a]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x14e]
mov dword [esp + 0x120], eax
movzx eax, word [esp + 0x152]
mov word [esp + 0x124], ax
movzx eax, word [esp + 0x144]
mov word [esp + 0x116], ax
movzx eax, word [esp + 0x142]
mov word [esp + 0x114], ax
mov dword [esp + 0x132], ebx
mov ebx, dword [esp + 0x44]
add edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movzx eax, word [esp + 0x152]
mov esi, dword [esp + 0x40]
push eax
lea eax, [esp + 0x174]
push eax
lea eax, [esi + 0x2e]
add eax, ebx
push eax
call sub.MSVCR120.dll_memcpy
movzx eax, word [esp + 0x15e]
add esp, 0x14
mov ecx, dword [esp + 0x60]
add eax, 0x2e
mov edi, dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x44]
inc ecx
add eax, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x44], eax
cmp ecx, dword [esp + 0x20]
jge 0x4cf7d0
mov ecx, dword [esp + 0x30]
jmp 0x4cf2f4
mov eax, dword [esp + 0x20]
jmp 0x4cf80f
mov dword [esp + 0x10], 1
jmp 0x4cf8bf
lea ecx, [esp + 0xc8]
mov dword [esp + 0x10], 2
call fcn.00548110
mov edi, dword [esp + 0x14]
jmp 0x4cf8bf
mov dword [esp + 0x10], 2
jmp 0x4cf8bf
xor esi, esi
cmp byte [0x5c6a90], 0
mov word [esp + 0x15a], ax
mov word [esp + 0x158], ax
mov dword [esp + 0x15c], esi
je 0x4cf848
push 0
push 0
mov edx, 1
mov ecx, edi
call fcn.00502a40
add esp, 8
mov dword [esp + 0x6c], edx
jmp 0x4cf88e
push 1
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], 0
push eax
push 0
push edi
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x48], eax
cmp eax, 0xffffffff
jne 0x4cf886
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4cf882
or eax, 0xffffffff
or ecx, eax
jmp 0x4cf88a
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x6c], ecx
push esi
mov edx, ebx
mov dword [esp + 0x164], eax
mov ecx, edi
call fcn.00501ab0
add esp, 4
lea edx, [esp + 0x150]
mov ecx, edi
push 0x16
call fcn.00501ab0
add esp, 4
jmp 0x4cf8bf
mov dword [esp + 0x10], 3
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.MSVCR120.dll_free]
test eax, eax
je 0x4cf8d3
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4cf8e1
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4cf8ef
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x18]
mov esi, dword [0x5c001c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x5c00d8]
test edx, edx
je 0x4cf927
cmp byte [0x5c6a90], 0
push edx
je 0x4cf920
call eax
push eax
call dword [0x5c00a8]
push eax
call ebx
jmp 0x4cf922
call esi
mov eax, dword [0x5c00d8]
cmp byte [0x5c6a90], 0
push edi
je 0x4cf93f
call eax
push eax
call dword [0x5c00a8]
push eax
call ebx
jmp 0x4cf941
call esi
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4cf964
mov ecx, dword [esp + 0x74]
xor edx, edx
push 0x20
call fcn.00502160
mov ecx, dword [esp + 0x78]
add esp, 4
xor edx, edx
call fcn.00501d80
mov ecx, dword [esp + 0x47c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret