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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415f54
push 0x40e298
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0xc
mov eax, 0x2d40
call fcn.0040cb30
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 [0x41cfd8], eax
call fcn.00407290
mov byte [0x41cfe4], 0
push 0x104
push 0x41cdb0
push 0
push dword [0x41cfd8]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
push 0x41d608
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
test esi, esi
je 0x402d49
cmp esi, 0x104
jbe 0x402d53
mov dword [ebp - 0x2d4c], 1
test bl, bl
je 0x402dae
xor ecx, ecx
mov ax, word [ecx + 0x41d608]
mov word [ecx + 0x41dc24], ax
add ecx, 2
test ax, ax
jne 0x402d59
push 0x41dc24
call fcn.004147f0
push 0x416098
push 0x41dc24
call fcn.0040e040
add esp, 8
or eax, 0xffffffff
inc eax
cmp word [eax + eax + 0x41dc24], 0
jne 0x402d8e
mov dword [0x41cfe8], eax
cmp dword [ebp - 0x2d4c], 0
jne 0x40331d
jmp 0x402dd8
push 0x41dc24
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x402dcc
cmp esi, 0x104
jbe 0x402d8b
mov dword [ebp - 0x2d4c], 1
jmp 0x402d8b
push 0x41cfc4
push 0x41cfcc
push 0x41cfd0
call fcn.00402ac0
test eax, eax
jne 0x402dff
mov dword [ebp - 0x2d4c], 3
jmp 0x4034db
cmp dword [0x41cfcc], 0
je 0x402df0
mov eax, dword [0x41cfd0]
mov edx, dword [0x41cfd4]
test edx, edx
jne 0x402e1b
test eax, eax
je 0x402df0
mov eax, dword [0x41cfc4]
mov edx, dword [0x41cfc8]
test edx, edx
jne 0x402e2e
test eax, eax
je 0x402df0
cmp dword [ebp - 0x2d4c], 0
jne 0x40331d
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 0x402e83
mov dword [ebp - 0x2d4c], 1
jmp 0x402f5b
mov eax, dword [0x41cfe8]
lea edx, [eax + eax + 0x41dc24]
xor ecx, ecx
mov ax, word [ecx + 0x416092]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x402e91
or eax, 0xffffffff
inc eax
cmp word [eax + eax + 0x41dc24], 0
jne 0x402ea7
lea eax, [eax + eax + 0x41dc24]
mov edx, dword [ebp - 0x2d54]
xor ecx, ecx
jmp 0x402ee1
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 0x402ec4
mov word [eax + ecx*2], 0
push 0x41dc24
call fcn.00414430
test al, al
jne 0x402f44
push 0
push 0x41dc24
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402f33
push 0x416098
push 0x41dc24
call fcn.0040e040
add esp, 8
or eax, 0xffffffff
inc eax
cmp word [eax + eax + 0x41dc24], 0
jne 0x402f20
mov dword [0x41cfe8], eax
jmp 0x402f5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e74
inc dword [ebp - 0x2d50]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add dword [ebp - 0x2d54], eax
jmp 0x402e6b
cmp dword [ebp - 0x2d4c], 0
jne 0x40331d
push 0x41cfec
push 0x61c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x41dc24
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x41dc24
call fcn.004072e0
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00403690
mov dword [ebp - 0x24], 0x4035b0
mov dword [ebp - 0x20], 0x4035d0
mov dword [ebp - 0x2c], 0x4035e0
mov dword [ebp - 0x28], 0x403600
lea eax, [ebp - 0x4c]
push eax
call fcn.00403b90
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.00403fa0
mov dword [ebp - 0x54], 0
push 0x41d608
lea eax, [ebp - 0x44]
push eax
call fcn.004038a0
test eax, eax
jne 0x403013
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402920
test eax, eax
je 0x403013
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403a10
test eax, eax
je 0x40301d
mov dword [ebp - 0x2d4c], 0xb
cmp dword [ebp - 0x2d4c], 0
jne 0x403062
push 0x40000
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x403047
mov dword [ebp - 0x2d4c], 2
jmp 0x403062
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.004041a0
cmp dword [ebp - 0x2d4c], 0
jne 0x4032f0
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.00406fb0
mov dword [ebp - 0x2d4c], eax
test eax, eax
jne 0x4032f0
or dword [ebp - 0x2d2c], 0xffffffff
mov dword [ebp - 0x2d30], 0
mov dword [ebp - 0x2d34], 0
xor esi, esi
jmp 0x4032d5
mov dword [ebp - 0x2d38], 0
mov dword [ebp - 0x2d3c], 0
push 0
push esi
lea eax, [ebp - 0xf0]
push eax
call fcn.004071c0
cmp eax, 0x104
jae 0x4031cf
mov eax, dword [0x41cfe8]
lea edi, [eax + eax + 0x41dc24]
push edi
push esi
lea eax, [ebp - 0xf0]
push eax
call fcn.004071c0
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.00406ff0
mov dword [ebp - 0x2d4c], eax
test eax, eax
jne 0x4032e1
xor ebx, ebx
jmp 0x403177
cmp word [edi + ebx*2], 0x2f
jne 0x403176
mov word [edi + ebx*2], 0
push 0x41dc24
call fcn.00414850
mov word [edi + ebx*2], 0x5c
inc ebx
cmp word [edi + ebx*2], 0
jne 0x403159
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 0x4031ac
push 0x41dc24
call fcn.00414850
jmp 0x4032d4
push 0x41dc24
call fcn.00414430
test al, al
jne 0x4031cf
push 0x41dc24
lea eax, [ebp - 0x2d40]
push eax
call fcn.004038c0
test eax, eax
je 0x4031de
mov dword [ebp - 0x2d4c], 2
jmp 0x4032e1
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.00403990
test eax, eax
jne 0x40321c
mov eax, dword [ebp - 0x2d44]
cmp eax, dword [ebp - 0x2d3c]
je 0x403226
mov dword [ebp - 0x2d4c], 2
cmp dword [ebp - 0x94], 0
je 0x403277
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 0x403277
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.004038e0
cmp dword [ebp - 0x2d4c], 0
jne 0x4032e1
test eax, eax
je 0x403298
mov dword [ebp - 0x2d4c], eax
jmp 0x4032e1
cmp dword [ebp - 0x9c], 0
je 0x4032d4
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 0x4032d4
mov eax, dword [ebp - 0x98]
push dword [eax + esi*4]
push 0x41dc24
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc esi
cmp esi, dword [ebp - 0xb0]
jb 0x4030c3
push dword [ebp - 0x2d30]
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x20]
jmp 0x4032fa
mov dword [ebp - 0x2d4c], 3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00404230
push dword [ebp - 0x54]
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x20]
lea eax, [ebp - 0x44]
push eax
call fcn.004038e0
mov eax, dword [0x41cfe8]
mov word [eax + eax + 0x41dc24], 0
mov dword [ebp - 0x2d58], 0
cmp dword [ebp - 0x2d4c], 0
jne 0x4034b9
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push str.PBCore.dll
push 0x41dc24
push 0x416084
push 0x30e
lea eax, [ebp - 0xd28]
push eax
call fcn.0040e570
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 0x40339c
push 0x40010
push 0x41cdb0
push str.Unable_to_load_module_PBCore
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x41cdb0
push str.APPTITLE
call dword [0x4192f4]
push 0x41d608
push str.ARCNAME
call dword [0x4192f4]
push 0x41dc24
push str.PBSFXPATH
call dword [0x4192f4]
push 0x41cfec
push 0x415ff6
call dword [0x4192f4]
xor ecx, ecx
mov ax, word [ecx + 0x41d608]
mov word [ecx + 0x41cfec], ax
add ecx, 2
test ax, ax
jne 0x4033de
push 0x41cfec
call fcn.004147f0
push 0x41cfec
push str.ARCPATH
call dword [0x4192f4]
push dword [ebp + 8]
call dword [0x41930c]
mov dword [ebp - 4], 0
call fcn.00401430
mov dword [ebp - 0x2d58], eax
or dword [ebp - 4], 0xffffffff
jmp 0x40347d
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x2d5c], 0
je 0x403498
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 0x4034b9
push dword [ebp - 0x2d5c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x41cfec
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x41dc24
call fcn.00401e70
cmp dword [ebp - 0x2d58], 0
jne 0x403589
cmp dword [ebp - 0x2d4c], 0
je 0x403585
push 0x104
lea eax, [ebp - 0x2f8]
push eax
push 1
push dword [0x41cfd8]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x415f60
lea eax, [ebp - 0x2f8]
push eax
call fcn.0040e040
add esp, 8
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x70c]
push eax
call fcn.0040e040
add esp, 8
push 0x104
lea eax, [ebp - 0x2f8]
push eax
mov eax, dword [ebp - 0x2d4c]
inc eax
push eax
push dword [0x41cfd8]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x70c]
push eax
call fcn.0040e040
add esp, 8
push 0x40010
push 0x41cdb0
lea eax, [ebp - 0x70c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x2d4c]
neg eax
jmp 0x40358f
xor eax, eax
jmp 0x40358f
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