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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4158bc
push 0x40d9c8
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0xc
mov eax, 0x2d40
call fcn.0040c150
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 [0x41bf80], eax
call fcn.004069c0
mov byte [0x41bf8c], 0
push 0x104
push 0x41bd58
push 0
push dword [0x41bf80]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
push 0x41c5b0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
test esi, esi
je 0x402479
cmp esi, 0x104
jbe 0x402483
mov dword [ebp - 0x2d4c], 1
test bl, bl
je 0x4024de
xor ecx, ecx
mov ax, word [ecx + 0x41c5b0]
mov word [ecx + 0x41cbcc], ax
add ecx, 2
test ax, ax
jne 0x402489
push 0x41cbcc
call fcn.00413f20
push 0x415a00
push 0x41cbcc
call fcn.0040d770
add esp, 8
or eax, 0xffffffff
inc eax
cmp word [eax + eax + 0x41cbcc], 0
jne 0x4024be
mov dword [0x41bf90], eax
cmp dword [ebp - 0x2d4c], 0
jne 0x402a4d
jmp 0x402508
push 0x41cbcc
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x4024fc
cmp esi, 0x104
jbe 0x4024bb
mov dword [ebp - 0x2d4c], 1
jmp 0x4024bb
push 0x41bf6c
push 0x41bf74
push 0x41bf78
call fcn.004021f0
test eax, eax
jne 0x40252f
mov dword [ebp - 0x2d4c], 3
jmp 0x402c0b
cmp dword [0x41bf74], 0
je 0x402520
mov eax, dword [0x41bf78]
mov edx, dword [0x41bf7c]
test edx, edx
jne 0x40254b
test eax, eax
je 0x402520
mov eax, dword [0x41bf6c]
mov edx, dword [0x41bf70]
test edx, edx
jne 0x40255e
test eax, eax
je 0x402520
cmp dword [ebp - 0x2d4c], 0
jne 0x402a4d
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 0x4025b3
mov dword [ebp - 0x2d4c], 1
jmp 0x40268b
mov eax, dword [0x41bf90]
lea edx, [eax + eax + 0x41cbcc]
xor ecx, ecx
mov ax, word [ecx + 0x4159fa]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x4025c1
or eax, 0xffffffff
inc eax
cmp word [eax + eax + 0x41cbcc], 0
jne 0x4025d7
lea eax, [eax + eax + 0x41cbcc]
mov edx, dword [ebp - 0x2d54]
xor ecx, ecx
jmp 0x402611
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 0x4025f4
mov word [eax + ecx*2], 0
push 0x41cbcc
call fcn.00413b60
test al, al
jne 0x402674
push 0
push 0x41cbcc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402663
push 0x415a00
push 0x41cbcc
call fcn.0040d770
add esp, 8
or eax, 0xffffffff
inc eax
cmp word [eax + eax + 0x41cbcc], 0
jne 0x402650
mov dword [0x41bf90], eax
jmp 0x40268b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4025a4
inc dword [ebp - 0x2d50]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add dword [ebp - 0x2d54], eax
jmp 0x40259b
cmp dword [ebp - 0x2d4c], 0
jne 0x402a4d
push 0x41bf94
push 0x61c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x41cbcc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x41cbcc
call fcn.00406a10
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00402dc0
mov dword [ebp - 0x24], 0x402ce0
mov dword [ebp - 0x20], 0x402d00
mov dword [ebp - 0x2c], 0x402d10
mov dword [ebp - 0x28], 0x402d30
lea eax, [ebp - 0x4c]
push eax
call fcn.004032c0
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.004036d0
mov dword [ebp - 0x54], 0
push 0x41c5b0
lea eax, [ebp - 0x44]
push eax
call fcn.00402fd0
test eax, eax
jne 0x402743
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402050
test eax, eax
je 0x402743
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403140
test eax, eax
je 0x40274d
mov dword [ebp - 0x2d4c], 0xb
cmp dword [ebp - 0x2d4c], 0
jne 0x402792
push 0x40000
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x402777
mov dword [ebp - 0x2d4c], 2
jmp 0x402792
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.004038d0
cmp dword [ebp - 0x2d4c], 0
jne 0x402a20
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.004066e0
mov dword [ebp - 0x2d4c], eax
test eax, eax
jne 0x402a20
or dword [ebp - 0x2d2c], 0xffffffff
mov dword [ebp - 0x2d30], 0
mov dword [ebp - 0x2d34], 0
xor esi, esi
jmp 0x402a05
mov dword [ebp - 0x2d38], 0
mov dword [ebp - 0x2d3c], 0
push 0
push esi
lea eax, [ebp - 0xf0]
push eax
call fcn.004068f0
cmp eax, 0x104
jae 0x4028ff
mov eax, dword [0x41bf90]
lea edi, [eax + eax + 0x41cbcc]
push edi
push esi
lea eax, [ebp - 0xf0]
push eax
call fcn.004068f0
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.00406720
mov dword [ebp - 0x2d4c], eax
test eax, eax
jne 0x402a11
xor ebx, ebx
jmp 0x4028a7
cmp word [edi + ebx*2], 0x2f
jne 0x4028a6
mov word [edi + ebx*2], 0
push 0x41cbcc
call fcn.00413f80
mov word [edi + ebx*2], 0x5c
inc ebx
cmp word [edi + ebx*2], 0
jne 0x402889
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 0x4028dc
push 0x41cbcc
call fcn.00413f80
jmp 0x402a04
push 0x41cbcc
call fcn.00413b60
test al, al
jne 0x4028ff
push 0x41cbcc
lea eax, [ebp - 0x2d40]
push eax
call fcn.00402ff0
test eax, eax
je 0x40290e
mov dword [ebp - 0x2d4c], 2
jmp 0x402a11
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.004030c0
test eax, eax
jne 0x40294c
mov eax, dword [ebp - 0x2d44]
cmp eax, dword [ebp - 0x2d3c]
je 0x402956
mov dword [ebp - 0x2d4c], 2
cmp dword [ebp - 0x94], 0
je 0x4029a7
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 0x4029a7
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.00403010
cmp dword [ebp - 0x2d4c], 0
jne 0x402a11
test eax, eax
je 0x4029c8
mov dword [ebp - 0x2d4c], eax
jmp 0x402a11
cmp dword [ebp - 0x9c], 0
je 0x402a04
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 0x402a04
mov eax, dword [ebp - 0x98]
push dword [eax + esi*4]
push 0x41cbcc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc esi
cmp esi, dword [ebp - 0xb0]
jb 0x4027f3
push dword [ebp - 0x2d30]
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x20]
jmp 0x402a2a
mov dword [ebp - 0x2d4c], 3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00403960
push dword [ebp - 0x54]
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x20]
lea eax, [ebp - 0x44]
push eax
call fcn.00403010
mov eax, dword [0x41bf90]
mov word [eax + eax + 0x41cbcc], 0
mov dword [ebp - 0x2d58], 0
cmp dword [ebp - 0x2d4c], 0
jne 0x402be9
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push str.PBCore.dll
push 0x41cbcc
push 0x4159ec
push 0x30e
lea eax, [ebp - 0xd28]
push eax
call fcn.0040dca0
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 0x402acc
push 0x40010
push 0x41bd58
push str.Unable_to_load_module_PBCore
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x41bd58
push str.APPTITLE
call dword [0x4182a4]
push 0x41c5b0
push str.ARCNAME
call dword [0x4182a4]
push 0x41cbcc
push str.PBSFXPATH
call dword [0x4182a4]
push 0x41bf94
push 0x41595e
call dword [0x4182a4]
xor ecx, ecx
mov ax, word [ecx + 0x41c5b0]
mov word [ecx + 0x41bf94], ax
add ecx, 2
test ax, ax
jne 0x402b0e
push 0x41bf94
call fcn.00413f20
push 0x41bf94
push str.ARCPATH
call dword [0x4182a4]
push dword [ebp + 8]
call dword [0x4182b8]
mov dword [ebp - 4], 0
call fcn.004011c0
mov dword [ebp - 0x2d58], eax
or dword [ebp - 4], 0xffffffff
jmp 0x402bad
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x2d5c], 0
je 0x402bc8
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 0x402be9
push dword [ebp - 0x2d5c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x41bf94
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x41cbcc
call fcn.004015b0
cmp dword [ebp - 0x2d58], 0
jne 0x402cb9
cmp dword [ebp - 0x2d4c], 0
je 0x402cb5
push 0x104
lea eax, [ebp - 0x2f8]
push eax
push 1
push dword [0x41bf80]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x4158c8
lea eax, [ebp - 0x2f8]
push eax
call fcn.0040d770
add esp, 8
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x70c]
push eax
call fcn.0040d770
add esp, 8
push 0x104
lea eax, [ebp - 0x2f8]
push eax
mov eax, dword [ebp - 0x2d4c]
inc eax
push eax
push dword [0x41bf80]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x70c]
push eax
call fcn.0040d770
add esp, 8
push 0x40010
push 0x41bd58
lea eax, [ebp - 0x70c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x2d4c]
neg eax
jmp 0x402cbf
xor eax, eax
jmp 0x402cbf
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