Function at 0x1003a730
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 1
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x230], 0x1388
mov dword [ebp - 0x220], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 0x240], 0
push 0x200
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1006a838
lea edx, [ebp - 0x204]
push edx
call sub.MSVCR120.dll_strcat
add esp, 8
push 0x1006a844
lea eax, [ebp - 0x204]
push eax
call sub.MSVCR120.dll_strcat
add esp, 8
push 0x1006a854
lea ecx, [ebp - 0x204]
push ecx
call sub.MSVCR120.dll_strcat
add esp, 8
push 0
push 0
push 3
push 0
push 0
push accept
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x1003a83a
xor eax, eax
jmp 0x1003ae5a
push 0
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x248], eax
push 1
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.MSVCR120.dll_calloc]
add esp, 8
mov dword [ebp - 0x22c], eax
push 1
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.MSVCR120.dll_calloc]
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x22c], 0
je 0x1003a891
cmp dword [ebp - 0x228], 0
jne 0x1003a896
jmp 0x1003adda
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x250], eax
push 0
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x23c]
cmp edx, dword [ebp - 0x24c]
jae 0x1003ac2d
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x24c]
sub ecx, dword [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x250]
push edx
call fcn.1003d4a0
add esp, 0xc
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x23c]
add eax, dword [ebp - 0x21c]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x210], 1
mov edx, dword [ebp - 0x208]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x1003a939
jmp 0x1003a8c6
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp - 0x21c]
jae 0x1003a975
mov edx, dword [ebp - 0x208]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x1003a975
mov ecx, dword [ebp - 0x208]
add ecx, 1
mov dword [ebp - 0x208], ecx
mov edx, dword [ebp - 0x210]
add edx, 1
mov dword [ebp - 0x210], edx
jmp 0x1003a939
mov eax, dword [ebp - 0x208]
movsx ecx, byte [eax]
cmp ecx, 0x23
je 0x1003a991
mov edx, dword [ebp - 0x208]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x1003a996
jmp 0x1003a8c6
cmp dword [ebp - 0x214], 0
je 0x1003a9d5
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
push 1
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.MSVCR120.dll_calloc]
add esp, 8
mov dword [ebp - 0x214], eax
push 1
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.MSVCR120.dll_calloc]
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x214], 0
je 0x1003aa17
cmp dword [ebp - 0x218], 0
jne 0x1003aa1c
jmp 0x1003adda
mov dword [ebp - 0x238], 0
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x21c]
jae 0x1003aa87
mov ecx, dword [ebp - 0x208]
movsx edx, byte [ecx]
cmp edx, 0x20
jle 0x1003aa87
mov eax, dword [ebp - 0x214]
add eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x208]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x238]
add eax, 1
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x208]
add ecx, 1
mov dword [ebp - 0x208], ecx
mov edx, dword [ebp - 0x210]
add edx, 1
mov dword [ebp - 0x210], edx
jmp 0x1003aa26
mov eax, dword [ebp - 0x214]
add eax, dword [ebp - 0x238]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
jne 0x1003aab6
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp - 0x21c]
jae 0x1003aafb
mov edx, dword [ebp - 0x208]
movsx eax, byte [edx]
push eax
call dword [sym.imp.MSVCR120.dll_isdigit]
add esp, 4
test eax, eax
jne 0x1003aafb
mov ecx, dword [ebp - 0x208]
add ecx, 1
mov dword [ebp - 0x208], ecx
mov edx, dword [ebp - 0x210]
add edx, 1
mov dword [ebp - 0x210], edx
jmp 0x1003aab6
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp - 0x21c]
jae 0x1003ab6b
mov edx, dword [ebp - 0x208]
movsx eax, byte [edx]
push eax
call dword [sym.imp.MSVCR120.dll_isdigit]
add esp, 4
test eax, eax
je 0x1003ab6b
mov ecx, dword [ebp - 0x244]
mov edx, dword [ebp - 0x208]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x208]
add ecx, 1
mov dword [ebp - 0x208], ecx
mov edx, dword [ebp - 0x244]
add edx, 1
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
jmp 0x1003ab07
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.MSVCR120.dll_atoi]
add esp, 4
mov dword [ebp - 0x224], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x1003ab9a
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x220], eax
jmp 0x1003adda
cmp dword [ebp + 0xc], 0
je 0x1003ac0e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x224]
cmp edx, dword [ecx]
je 0x1003ac04
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0x271e
je 0x1003ac04
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0x2720
je 0x1003ac04
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x224]
cmp eax, dword [edx]
jne 0x1003ac0e
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0x32c9
jne 0x1003ac0e
mov edx, dword [ebp + 8]
push edx
call fcn.100551b0
add esp, 4
push eax
mov eax, dword [ebp - 0x214]
push eax
call fcn.100551b0
add esp, 4
push eax
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
je 0x1003ac0e
mov dword [ebp - 0x240], 1
mov ecx, dword [ebp - 0x224]
cmp ecx, dword [ebp - 0x230]
jle 0x1003ac28
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x230], edx
jmp 0x1003a8c6
cmp dword [ebp + 0xc], 0
je 0x1003ad58
cmp dword [ebp - 0x240], 0
jne 0x1003ac52
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.1003d540
add esp, 4
test eax, eax
je 0x1003ac96
cmp dword [ebp - 0x240], 0
jne 0x1003acab
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.1003d540
add esp, 4
test eax, eax
je 0x1003acab
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0x32c9
jne 0x1003acab
mov edx, dword [ebp + 8]
push edx
call fcn.100551b0
add esp, 4
push eax
push 0x1006a9b0
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
jne 0x1003acab
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x220], ecx
jmp 0x1003adda
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x230]
cmp eax, dword [edx]
jle 0x1003acc9
mov ecx, dword [ebp - 0x230]
add ecx, 1
mov dword [ebp - 0x20c], ecx
jmp 0x1003acd7
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 1
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0x271e
je 0x1003ad31
cmp dword [ebp - 0x20c], 0x2720
je 0x1003ad31
cmp dword [ebp - 0x20c], 0x32c9
jne 0x1003ad12
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
jne 0x1003ad31
mov eax, dword [ebp - 0x20c]
push eax
call fcn.1003d540
add esp, 4
test eax, eax
je 0x1003ad42
cmp dword [ebp - 0x20c], 0x32c9
je 0x1003ad42
mov ecx, dword [ebp - 0x20c]
add ecx, 1
mov dword [ebp - 0x20c], ecx
jmp 0x1003acd7
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0x220], edx
jmp 0x1003adda
mov eax, dword [ebp - 0x230]
add eax, 1
mov dword [ebp - 0x20c], eax
push str.CIMIODMCP
mov ecx, dword [ebp + 8]
push ecx
call fcn.100551b0
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll_strstr]
add esp, 8
test eax, eax
je 0x1003ad92
mov dword [ebp - 0x220], 0x32c9
jmp 0x1003adda
cmp dword [ebp - 0x20c], 0x271e
je 0x1003adbd
cmp dword [ebp - 0x20c], 0x2720
je 0x1003adbd
mov edx, dword [ebp - 0x20c]
push edx
call fcn.1003d540
add esp, 4
test eax, eax
je 0x1003adce
mov eax, dword [ebp - 0x20c]
add eax, 1
mov dword [ebp - 0x20c], eax
jmp 0x1003ad92
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x220], ecx
cmp dword [ebp - 0x234], 0
je 0x1003adf0
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x22c], 0
je 0x1003ae09
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp - 0x228], 0
je 0x1003ae22
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp - 0x214], 0
je 0x1003ae3b
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp - 0x218], 0
je 0x1003ae54
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret