Function at 0x403080
Capabilities:
Create directory
Get common file path
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4161cc
push 0x40e668
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0xc
mov eax, 0x2d40
call fcn.0040cf00
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov bl, byte [ebp + 0x18]
mov dword [ebp - 0x2d4c], 0
mov eax, dword [ebp + 8]
mov dword [0x41cfb8], eax
call fcn.00407650
mov byte [0x41cfc4], 0
push 0x104
push 0x41cd90
push 0
push dword [0x41cfb8]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
push 0x41d5e8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
test esi, esi
je 0x403109
cmp esi, 0x104
jbe 0x403113
mov dword [ebp - 0x2d4c], 1
test bl, bl
je 0x40316e
xor ecx, ecx
mov ax, word [ecx + 0x41d5e8]
mov word [ecx + 0x41dc04], ax
add ecx, 2
test ax, ax
jne 0x403119
push 0x41dc04
call fcn.00414d80
push 0x416310
push 0x41dc04
call fcn.0040e410
add esp, 8
or eax, 0xffffffff
inc eax
cmp word [eax + eax + 0x41dc04], 0
jne 0x40314e
mov dword [0x41cfc8], eax
cmp dword [ebp - 0x2d4c], 0
jne 0x4036dd
jmp 0x403198
push 0x41dc04
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x40318c
cmp esi, 0x104
jbe 0x40314b
mov dword [ebp - 0x2d4c], 1
jmp 0x40314b
push 0x41cfa4
push 0x41cfac
push 0x41cfb0
call fcn.00402e80
test eax, eax
jne 0x4031bf
mov dword [ebp - 0x2d4c], 3
jmp 0x40389b
cmp dword [0x41cfac], 0
je 0x4031b0
mov eax, dword [0x41cfb0]
mov edx, dword [0x41cfb4]
test edx, edx
jne 0x4031db
test eax, eax
je 0x4031b0
mov eax, dword [0x41cfa4]
mov edx, dword [0x41cfa8]
test edx, edx
jne 0x4031ee
test eax, eax
je 0x4031b0
cmp dword [ebp - 0x2d4c], 0
jne 0x4036dd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
shl esi, 0xc
shl edi, 0xe
xor esi, edi
xor esi, eax
mov dword [ebp - 0x2d54], esi
mov dword [ebp - 0x2d50], 0
cmp dword [ebp - 0x2d50], 0x64
jb 0x403243
mov dword [ebp - 0x2d4c], 1
jmp 0x40331b
mov eax, dword [0x41cfc8]
lea edx, [eax + eax + 0x41dc04]
xor ecx, ecx
mov ax, word [ecx + 0x41630a]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x403251
or eax, 0xffffffff
inc eax
cmp word [eax + eax + 0x41dc04], 0
jne 0x403267
lea eax, [eax + eax + 0x41dc04]
mov edx, dword [ebp - 0x2d54]
xor ecx, ecx
jmp 0x4032a1
mov esi, edx
and esi, 0xf
shr edx, 4
lea edi, [esi + 0x30]
lea ebx, [esi + 0x37]
cmp esi, 0xa
cmovae edi, ebx
imul esi, ecx, 0xfffffffe
mov word [eax + esi + 0xe], di
inc ecx
cmp ecx, 8
jb 0x403284
mov word [eax + ecx*2], 0
push 0x41dc04
call fcn.004149c0
test al, al
jne 0x403304
push 0
push 0x41dc04
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4032f3
push 0x416310
push 0x41dc04
call fcn.0040e410
add esp, 8
or eax, 0xffffffff
inc eax
cmp word [eax + eax + 0x41dc04], 0
jne 0x4032e0
mov dword [0x41cfc8], eax
jmp 0x40331b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403234
inc dword [ebp - 0x2d50]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add dword [ebp - 0x2d54], eax
jmp 0x40322b
cmp dword [ebp - 0x2d4c], 0
jne 0x4036dd
push 0x41cfcc
push 0x61c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x41dc04
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x41dc04
call fcn.004076a0
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00403a50
mov dword [ebp - 0x24], 0x403970
mov dword [ebp - 0x20], 0x403990
mov dword [ebp - 0x2c], 0x4039a0
mov dword [ebp - 0x28], 0x4039c0
lea eax, [ebp - 0x4c]
push eax
call fcn.00403f50
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.00404360
mov dword [ebp - 0x54], 0
push 0x41d5e8
lea eax, [ebp - 0x44]
push eax
call fcn.00403c60
test eax, eax
jne 0x4033d3
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402ce0
test eax, eax
je 0x4033d3
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403dd0
test eax, eax
je 0x4033dd
mov dword [ebp - 0x2d4c], 0xb
cmp dword [ebp - 0x2d4c], 0
jne 0x403422
push 0x40000
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x403407
mov dword [ebp - 0x2d4c], 2
jmp 0x403422
mov dword [ebp - 0x50], 0x40000
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0xf0]
push eax
call fcn.00404560
cmp dword [ebp - 0x2d4c], 0
jne 0x4036b0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00407370
mov dword [ebp - 0x2d4c], eax
test eax, eax
jne 0x4036b0
or dword [ebp - 0x2d2c], 0xffffffff
mov dword [ebp - 0x2d30], 0
mov dword [ebp - 0x2d34], 0
xor esi, esi
jmp 0x403695
mov dword [ebp - 0x2d38], 0
mov dword [ebp - 0x2d3c], 0
push 0
push esi
lea eax, [ebp - 0xf0]
push eax
call fcn.00407580
cmp eax, 0x104
jae 0x40358f
mov eax, dword [0x41cfc8]
lea edi, [eax + eax + 0x41dc04]
push edi
push esi
lea eax, [ebp - 0xf0]
push eax
call fcn.00407580
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2d3c]
push eax
lea eax, [ebp - 0x2d38]
push eax
lea eax, [ebp - 0x2d34]
push eax
lea eax, [ebp - 0x2d30]
push eax
lea eax, [ebp - 0x2d2c]
push eax
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004073b0
mov dword [ebp - 0x2d4c], eax
test eax, eax
jne 0x4036a1
xor ebx, ebx
jmp 0x403537
cmp word [edi + ebx*2], 0x2f
jne 0x403536
mov word [edi + ebx*2], 0
push 0x41dc04
call fcn.00414de0
mov word [edi + ebx*2], 0x5c
inc ebx
cmp word [edi + ebx*2], 0
jne 0x403519
mov eax, dword [ebp - 0xa8]
mov edx, esi
shr edx, 3
movzx eax, byte [eax + edx]
mov edx, pe_nt_image_headers32
mov ecx, esi
and ecx, 7
sar edx, cl
test eax, edx
je 0x40356c
push 0x41dc04
call fcn.00414de0
jmp 0x403694
push 0x41dc04
call fcn.004149c0
test al, al
jne 0x40358f
push 0x41dc04
lea eax, [ebp - 0x2d40]
push eax
call fcn.00403c80
test eax, eax
je 0x40359e
mov dword [ebp - 0x2d4c], 2
jmp 0x4036a1
mov eax, dword [ebp - 0x2d3c]
mov dword [ebp - 0x2d44], eax
lea eax, [ebp - 0x2d44]
push eax
mov eax, dword [ebp - 0x2d30]
add eax, dword [ebp - 0x2d38]
push eax
lea eax, [ebp - 0x2d40]
push eax
call fcn.00403d50
test eax, eax
jne 0x4035dc
mov eax, dword [ebp - 0x2d44]
cmp eax, dword [ebp - 0x2d3c]
je 0x4035e6
mov dword [ebp - 0x2d4c], 2
cmp dword [ebp - 0x94], 0
je 0x403637
mov eax, dword [ebp - 0x94]
mov edx, esi
shr edx, 3
movzx eax, byte [eax + edx]
mov edx, pe_nt_image_headers32
mov ecx, esi
and ecx, 7
sar edx, cl
test eax, edx
je 0x403637
mov eax, dword [ebp - 0x90]
lea eax, [eax + esi*8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
xchg edx, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push dword [ebp - 0x2d40]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp - 0x2d40]
push eax
call fcn.00403ca0
cmp dword [ebp - 0x2d4c], 0
jne 0x4036a1
test eax, eax
je 0x403658
mov dword [ebp - 0x2d4c], eax
jmp 0x4036a1
cmp dword [ebp - 0x9c], 0
je 0x403694
mov eax, dword [ebp - 0x9c]
mov edx, esi
shr edx, 3
movzx eax, byte [eax + edx]
mov edx, pe_nt_image_headers32
mov ecx, esi
and ecx, 7
sar edx, cl
test eax, edx
je 0x403694
mov eax, dword [ebp - 0x98]
push dword [eax + esi*4]
push 0x41dc04
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc esi
cmp esi, dword [ebp - 0xb0]
jb 0x403483
push dword [ebp - 0x2d30]
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x20]
jmp 0x4036ba
mov dword [ebp - 0x2d4c], 3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004045f0
push dword [ebp - 0x54]
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x20]
lea eax, [ebp - 0x44]
push eax
call fcn.00403ca0
mov eax, dword [0x41cfc8]
mov word [eax + eax + 0x41dc04], 0
mov dword [ebp - 0x2d58], 0
cmp dword [ebp - 0x2d4c], 0
jne 0x403879
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push str.PBCore.dll
push 0x41dc04
push 0x4162fc
push 0x30e
lea eax, [ebp - 0xd28]
push eax
call fcn.0040e940
add esp, 0x14
lea eax, [ebp - 0xd28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2d5c], eax
test eax, eax
jne 0x40375c
push 0x40010
push 0x41cd90
push str.Unable_to_load_module_PBCore
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x41cd90
push str.APPTITLE
call dword [0x4192bc]
push 0x41d5e8
push str.ARCNAME
call dword [0x4192bc]
push 0x41dc04
push str.PBSFXPATH
call dword [0x4192bc]
push 0x41cfcc
push 0x41626e
call dword [0x4192bc]
xor ecx, ecx
mov ax, word [ecx + 0x41d5e8]
mov word [ecx + 0x41cfcc], ax
add ecx, 2
test ax, ax
jne 0x40379e
push 0x41cfcc
call fcn.00414d80
push 0x41cfcc
push str.ARCPATH
call dword [0x4192bc]
push dword [ebp + 8]
call dword [0x4192d8]
mov dword [ebp - 4], 0
call fcn.00401610
mov dword [ebp - 0x2d58], eax
or dword [ebp - 4], 0xffffffff
jmp 0x40383d
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x2d5c], 0
je 0x403858
push dword [ebp - 0x2d5c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.PBCore.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x2d5c], eax
test eax, eax
je 0x403879
push dword [ebp - 0x2d5c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x41cfcc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x41dc04
call fcn.00402020
cmp dword [ebp - 0x2d58], 0
jne 0x403949
cmp dword [ebp - 0x2d4c], 0
je 0x403945
push 0x104
lea eax, [ebp - 0x2f8]
push eax
push 1
push dword [0x41cfb8]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x4161d8
lea eax, [ebp - 0x2f8]
push eax
call fcn.0040e410
add esp, 8
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x70c]
push eax
call fcn.0040e410
add esp, 8
push 0x104
lea eax, [ebp - 0x2f8]
push eax
mov eax, dword [ebp - 0x2d4c]
inc eax
push eax
push dword [0x41cfb8]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x70c]
push eax
call fcn.0040e410
add esp, 8
push 0x40010
push 0x41cd90
lea eax, [ebp - 0x70c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x2d4c]
neg eax
jmp 0x40394f
xor eax, eax
jmp 0x40394f
mov eax, dword [ebp - 0x2d58]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
lea esp, [ebp - 0x2d68]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14