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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4371aa
mov eax, dword fs:[0]
push eax
mov eax, 0x10520
call fcn.00421640
mov eax, dword [0x445610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10504], edi
mov dword [ebp - 0x1052c], eax
mov dword [ebp - 0x10528], ebx
call fcn.0040d199
test eax, eax
je 0x41057f
push 0x53
pop eax
push 0x68
mov word [ebp - 0x28], ax
pop eax
push 0x65
mov word [ebp - 0x26], ax
pop eax
push 0x6c
pop ecx
push 0x33
mov word [ebp - 0x24], ax
pop eax
push 0x32
mov word [ebp - 0x1e], ax
pop eax
push 0x2e
mov word [ebp - 0x1c], ax
pop eax
mov word [ebp - 0x1a], ax
push 0x64
pop eax
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x22], cx
mov word [ebp - 0x20], cx
mov word [ebp - 0x16], cx
mov word [ebp - 0x14], cx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x10528], edi
test edi, edi
je 0x410a2f
movdqa xmm0, xmmword [0x4397a0]
lea eax, [ebp - 0x198]
push eax
push edi
movdqu xmmword [ebp - 0x198], xmm0
mov dword [ebp - 0x188], 0x68746150
mov byte [ebp - 0x184], bl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x5a4], eax
test eax, eax
je 0x410573
lea ecx, [ebp - 0x10508]
push ecx
push ebx
push ebx
push 0x439ce0
call eax
test eax, eax
js 0x410573
push 0xb0
lea eax, [ebp - 0x10450]
push ebx
push eax
call fcn.0041f3b0
add esp, 0xc
lea ecx, [ebp - 0x10450]
inc ebx
push ebx
push 3
call fcn.00402acb
push 0x5c
pop eax
push 0x7b
mov word [ebp - 0xd4], ax
mov word [ebp - 0xd2], ax
pop eax
push 0x44
pop ecx
push 0x32
mov word [ebp - 0xd0], ax
pop eax
push 0x30
pop ebx
push 0x34
pop edx
push 0x37
pop esi
push 0x2d
mov word [ebp - 0xce], cx
mov word [ebp - 0xc4], cx
pop ecx
push 0x44
pop edi
push 0x45
and dword [ebp - 4], 0
mov word [ebp - 0xca], bx
mov word [ebp - 0xc6], bx
mov word [ebp - 0xba], bx
pop ebx
push 0x36
mov word [ebp - 0xb0], bx
pop ebx
push 0x42
mov word [ebp - 0xac], bx
pop ebx
push 0x39
mov word [ebp - 0xa8], bx
pop ebx
push 0x33
mov word [ebp - 0xbe], cx
mov word [ebp - 0xb4], cx
mov word [ebp - 0xaa], cx
mov word [ebp - 0xa0], cx
pop ecx
push 0x43
mov word [ebp - 0xb6], di
mov word [ebp - 0xa4], di
pop edi
push 0x46
mov word [ebp - 0x9c], cx
pop ecx
mov word [ebp - 0xcc], ax
mov word [ebp - 0xc8], ax
mov word [ebp - 0xc2], dx
mov word [ebp - 0xc0], si
mov word [ebp - 0xbc], si
mov word [ebp - 0xb8], si
mov word [ebp - 0xb2], dx
mov word [ebp - 0xae], ax
mov word [ebp - 0xa6], dx
mov word [ebp - 0xa2], bx
mov word [ebp - 0x9e], si
mov word [ebp - 0x9a], bx
mov word [ebp - 0x98], di
mov word [ebp - 0x96], dx
mov word [ebp - 0x94], cx
mov word [ebp - 0x92], dx
mov word [ebp - 0x90], di
mov word [ebp - 0x8e], ax
push 0x45
pop ecx
push 0x41
mov word [ebp - 0x8c], cx
pop ecx
push 0x7d
mov word [ebp - 0x88], cx
pop ecx
push 0x5c
mov word [ebp - 0x8a], bx
pop ebx
push 0x7b
mov word [ebp - 0x86], cx
pop ecx
push 0x46
mov word [ebp - 0x84], bx
mov word [ebp - 0x82], bx
pop ebx
push 0x42
mov word [ebp - 0x7a], di
mov word [ebp - 0x7e], bx
pop ebx
push 0x30
pop edi
push 0x36
mov word [ebp - 0x80], cx
pop ecx
push 0x35
mov word [ebp - 0x78], di
mov word [ebp - 0x76], cx
pop ecx
push 0x43
pop edi
push 0x2d
mov word [ebp - 0x74], cx
pop ecx
push 0x39
mov word [ebp - 0x70], di
mov word [ebp - 0x7c], bx
mov word [ebp - 0x6a], bx
pop ebx
push 0x46
pop edi
push 0x42
mov word [ebp - 0x60], di
pop edi
push 0x36
mov word [ebp - 0x5e], di
pop edi
push 0x38
mov word [ebp - 0x5c], di
pop edi
push 0x41
mov word [ebp - 0x58], di
pop edi
push 0x44
mov word [ebp - 0x56], di
pop edi
push 0x41
mov word [ebp - 0x54], di
pop edi
push 0x31
mov word [ebp - 0x6e], cx
mov word [ebp - 0x64], cx
mov word [ebp - 0x5a], cx
mov word [ebp - 0x50], cx
pop ecx
push 0x46
mov word [ebp - 0x4c], cx
pop ecx
push 0x35
mov word [ebp - 0x66], bx
mov word [ebp - 0x4e], bx
pop ebx
mov word [ebp - 0x72], ax
mov word [ebp - 0x6c], si
mov word [ebp - 0x68], ax
mov word [ebp - 0x62], dx
mov word [ebp - 0x52], di
mov word [ebp - 0x4a], cx
mov word [ebp - 0x48], bx
push 0x42
pop ecx
push 0x36
mov word [ebp - 0x42], ax
pop eax
push 0x44
mov word [ebp - 0x40], ax
pop eax
push 0x7d
mov word [ebp - 0x3a], ax
pop eax
push 0x5c
mov word [ebp - 0x36], ax
pop eax
push 0x31
mov word [ebp - 0x34], ax
mov word [ebp - 0x32], ax
pop eax
mov word [ebp - 0x30], ax
push 0x2e
pop eax
mov word [ebp - 0x2e], ax
xor eax, eax
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x10508]
lea eax, [ebp - 0x10440]
mov word [ebp - 0x46], dx
push eax
mov word [ebp - 0x44], cx
mov word [ebp - 0x3e], si
mov word [ebp - 0x3c], di
mov word [ebp - 0x38], dx
mov word [ebp - 0x2c], bx
call fcn.00401576
pop ecx
pop ecx
push eax
call fcn.00401576
pop ecx
pop ecx
lea eax, [ebp - 0x10524]
push eax
lea ecx, [ebp - 0x10450]
call fcn.00415f17
cmp dword [eax + 0x14], 8
jb 0x410419
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edi, dword [ebp - 0x10528]
push 1
pop ebx
test eax, eax
je 0x410443
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x10509], 0
cmp eax, 0xb7
jne 0x410449
mov byte [ebp - 0x10509], bl
push 0
push ebx
lea ecx, [ebp - 0x10524]
call fcn.00413939
cmp byte [ebp - 0x10509], 0
je 0x41055c
push dword [ebp - 0x10504]
lea eax, [ebp - 0x10440]
push 0x43945c
push eax
call fcn.00401331
pop ecx
pop ecx
push eax
call fcn.00401763
pop ecx
pop ecx
lea eax, [ebp - 0x10524]
push eax
lea ecx, [ebp - 0x10450]
call fcn.00415f17
cmp dword [eax + 0x14], 8
jb 0x41049f
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push ebx
lea ecx, [ebp - 0x10524]
mov esi, eax
call fcn.00413939
cmp esi, 0xffffffff
je 0x41055c
xor eax, eax
push eax
push eax
push eax
push esi
mov dword [ebp - 0x10504], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10504]
push eax
push 0x10000
lea eax, [ebp - 0x103a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41055c
cmp dword [ebp - 0x10504], 0
jbe 0x41055c
push dword [ebp - 0x10504]
and dword [ebp - 0x10514], 0
lea eax, [ebp - 0x103a0]
push eax
lea ecx, [ebp - 0x10524]
mov dword [ebp - 0x10510], 0xf
mov byte [ebp - 0x10524], 0
call fcn.00413d17
mov ecx, dword [ebp - 0x1052c]
lea eax, [ebp - 0x10524]
push eax
call fcn.004039ec
push 0
push ebx
lea ecx, [ebp - 0x10524]
call fcn.004138f5
push dword [ebp - 0x10508]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x10450]
call fcn.00403c09
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x410a2f
lea eax, [ebp - 0x3a0]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x410a2f
push 0xb0
lea eax, [ebp - 0x10500]
push ebx
push eax
call fcn.0041f3b0
add esp, 0xc
lea ecx, [ebp - 0x10500]
xor ebx, ebx
inc ebx
push ebx
push 3
call fcn.00402acb
push 0x5c
pop eax
push 0x7b
mov word [ebp - 0x180], ax
mov word [ebp - 0x17e], ax
pop eax
push 0x44
pop ecx
push 0x32
mov dword [ebp - 4], ebx
mov word [ebp - 0x17c], ax
pop eax
push 0x30
pop ebx
push 0x34
pop edx
push 0x37
pop esi
push 0x2d
mov word [ebp - 0x17a], cx
mov word [ebp - 0x170], cx
pop ecx
push 0x44
pop edi
push 0x45
mov word [ebp - 0x176], bx
mov word [ebp - 0x172], bx
mov word [ebp - 0x166], bx
pop ebx
push 0x36
mov word [ebp - 0x15c], bx
pop ebx
push 0x42
mov word [ebp - 0x158], bx
pop ebx
push 0x39
mov word [ebp - 0x154], bx
pop ebx
push 0x33
mov word [ebp - 0x16a], cx
mov word [ebp - 0x160], cx
mov word [ebp - 0x156], cx
mov word [ebp - 0x14c], cx
pop ecx
push 0x43
mov word [ebp - 0x162], di
mov word [ebp - 0x150], di
pop edi
push 0x46
mov word [ebp - 0x148], cx
pop ecx
mov word [ebp - 0x178], ax
mov word [ebp - 0x174], ax
mov word [ebp - 0x16e], dx
mov word [ebp - 0x16c], si
mov word [ebp - 0x168], si
mov word [ebp - 0x164], si
mov word [ebp - 0x15e], dx
mov word [ebp - 0x15a], ax
mov word [ebp - 0x152], dx
mov word [ebp - 0x14e], bx
mov word [ebp - 0x14a], si
mov word [ebp - 0x146], bx
mov word [ebp - 0x144], di
mov word [ebp - 0x142], dx
mov word [ebp - 0x140], cx
mov word [ebp - 0x13e], dx
mov word [ebp - 0x13c], di
push 0x45
pop ecx
push 0x41
mov word [ebp - 0x138], cx
pop ecx
push 0x7d
mov word [ebp - 0x134], cx
pop ecx
push 0x5c
mov word [ebp - 0x136], bx
pop ebx
push 0x7b
mov word [ebp - 0x132], cx
pop ecx
push 0x46
mov word [ebp - 0x130], bx
mov word [ebp - 0x12e], bx
pop ebx
push 0x42
mov word [ebp - 0x126], di
mov word [ebp - 0x12a], bx
pop ebx
push 0x30
pop edi
push 0x36
mov word [ebp - 0x12c], cx
pop ecx
push 0x35
mov word [ebp - 0x124], di
mov word [ebp - 0x122], cx
pop ecx
push 0x43
pop edi
push 0x2d
mov word [ebp - 0x120], cx
pop ecx
push 0x39
mov word [ebp - 0x11c], di
mov word [ebp - 0x128], bx
mov word [ebp - 0x116], bx
pop ebx
push 0x46
pop edi
push 0x42
mov word [ebp - 0x10c], di
pop edi
push 0x36
mov word [ebp - 0x10a], di
pop edi
push 0x38
mov word [ebp - 0x108], di
pop edi
push 0x41
mov word [ebp - 0x104], di
pop edi
push 0x44
mov word [ebp - 0x102], di
pop edi
push 0x41
mov word [ebp - 0x100], di
pop edi
push 0x31
mov word [ebp - 0x11a], cx
mov word [ebp - 0x110], cx
mov word [ebp - 0x106], cx
mov word [ebp - 0xfc], cx
pop ecx
push 0x46
mov word [ebp - 0xf8], cx
pop ecx
push 0x35
mov word [ebp - 0x112], bx
mov word [ebp - 0xfa], bx
mov word [ebp - 0x13a], ax
mov word [ebp - 0x11e], ax
mov word [ebp - 0x118], si
mov word [ebp - 0x114], ax
mov word [ebp - 0x10e], dx
mov word [ebp - 0xfe], di
mov word [ebp - 0xf6], cx
pop ebx
push 0x42
pop ecx
push 0x36
mov word [ebp - 0xee], ax
pop eax
push 0x44
mov word [ebp - 0xec], ax
pop eax
push 0x7d
mov word [ebp - 0xe6], ax
pop eax
push 0x5c
mov word [ebp - 0xe2], ax
pop eax
mov word [ebp - 0xe0], ax
mov word [ebp - 0xde], ax
push 0x31
pop eax
mov word [ebp - 0xdc], ax
push 0x2e
pop eax
mov word [ebp - 0xda], ax
xor eax, eax
mov word [ebp - 0xd6], ax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x3a0]
mov word [ebp - 0xf4], bx
push eax
lea eax, [ebp - 0x104f0]
mov word [ebp - 0xf2], dx
push eax
mov word [ebp - 0xf0], cx
mov word [ebp - 0xea], si
mov word [ebp - 0xe8], di
mov word [ebp - 0xe4], dx
mov word [ebp - 0xd8], bx
call fcn.00401576
pop ecx
pop ecx
push eax
call fcn.00401576
pop ecx
pop ecx
lea eax, [ebp - 0x10524]
push eax
lea ecx, [ebp - 0x10500]
call fcn.00415f17
cmp dword [eax + 0x14], 8
jb 0x4108e6
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edi, dword [ebp - 0x10504]
push 1
pop ebx
test eax, eax
je 0x410910
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x10509], 0
cmp eax, 0xb7
jne 0x410916
mov byte [ebp - 0x10509], bl
push 0
push ebx
lea ecx, [ebp - 0x10524]
call fcn.00413939
cmp byte [ebp - 0x10509], 0
je 0x410a24
push edi
lea eax, [ebp - 0x104f0]
push 0x43945c
push eax
call fcn.00401331
pop ecx
pop ecx
push eax
call fcn.00401763
pop ecx
pop ecx
lea eax, [ebp - 0x10524]
push eax
lea ecx, [ebp - 0x10500]
call fcn.00415f17
cmp dword [eax + 0x14], 8
jb 0x410967
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push ebx
lea ecx, [ebp - 0x10524]
mov esi, eax
call fcn.00413939
cmp esi, 0xffffffff
je 0x410a24
xor eax, eax
push eax
push eax
push eax
push esi
mov dword [ebp - 0x10504], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10504]
push eax
push 0x10000
lea eax, [ebp - 0x103a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410a24
cmp dword [ebp - 0x10504], 0
jbe 0x410a24
push dword [ebp - 0x10504]
and dword [ebp - 0x10514], 0
lea eax, [ebp - 0x103a0]
push eax
lea ecx, [ebp - 0x10524]
mov dword [ebp - 0x10510], 0xf
mov byte [ebp - 0x10524], 0
call fcn.00413d17
mov ecx, dword [ebp - 0x1052c]
lea eax, [ebp - 0x10524]
push eax
call fcn.004039ec
push 0
push ebx
lea ecx, [ebp - 0x10524]
call fcn.004138f5
lea ecx, [ebp - 0x10500]
call fcn.00403c09
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042109c
mov esp, ebp
pop ebp
ret 8