Function at 0x42c050
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [0x46cc2c], 0x10
push ebx
push esi
mov esi, dword [0x46cc18]
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
jae 0x42c072
mov esi, 0x46cc18
mov eax, dword [0x469cb4]
mov edx, dword [eax + 0xc]
mov ecx, 0x469cb4
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 4], edi
test esi, esi
je 0x42c0b1
test esi, 0xffff0000
jne 0x42c0b1
movzx esi, si
push 0
push esi
call fcn.00401340
add esp, 8
test eax, eax
je 0x42c0bd
push esi
push eax
lea ecx, [ebp - 4]
call fcn.00402a60
jmp 0x42c0ba
push esi
lea ecx, [ebp - 4]
call fcn.00402b80
mov edi, dword [ebp - 4]
push 0x458e24
lea ecx, [ebp - 0xc]
call fcn.00408300
push 0x458e24
lea ecx, [ebp - 8]
call fcn.00408300
mov ecx, 0x458e24
mov eax, edi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42c106
test dx, dx
je 0x42c102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42c106
add eax, 4
add ecx, 4
test dx, dx
jne 0x42c0e0
xor eax, eax
jmp 0x42c10b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42c36b
add ebx, 0x49a8
push ebx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edi, [ebx - 2]
jmp 0x42c130
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42c130
mov ecx, 7
mov esi, 0x45bcd0
rep movsd dword es:[edi], dword [esi]
push 0
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 4]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 3]
test eax, eax
js 0x42c361
cmp eax, ecx
jg 0x42c361
mov ax, word [edx + eax*2]
mov word [ebp - 0x10], ax
xor ecx, ecx
lea eax, [ebp - 0x10]
mov word [ebp - 0xe], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c180
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0xc]
call fcn.004029b0
lea eax, [ebp - 0xc]
push 0x45be84
push eax
call fcn.00422060
add esp, 8
test al, al
je 0x42c1c2
push 0xb
push str.jp2logo.gif
lea ecx, [ebp - 8]
call fcn.004029b0
jmp 0x42c21c
lea ecx, [ebp - 0xc]
push 0x45be68
push ecx
call fcn.00422060
add esp, 8
test al, al
je 0x42c1de
push str.jp2logo.png
jmp 0x42c214
lea edx, [ebp - 0xc]
push 0x45be4c
push edx
call fcn.00422060
add esp, 8
test al, al
je 0x42c1fa
push str.jp2logo.jpg
jmp 0x42c214
lea eax, [ebp - 0xc]
push 0x45be30
push eax
call fcn.00422060
add esp, 8
test al, al
je 0x42c21c
push 0x45be88
lea ecx, [ebp - 8]
call fcn.00407eb0
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42c220
mov ecx, dword [0x45b13c]
mov eax, dword [ebp - 8]
mov dword [edi], ecx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c240
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x42c250
push 0
mov ecx, eax
shr ecx, 2
push 0
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0xffffffffffffffff
push ebx
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10], eax
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c290
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 1]
push edi
call fcn.0043d95e
mov esi, eax
add esp, 4
test esi, esi
jne 0x42c30a
push edi
call fcn.0043d95e
mov esi, eax
add esp, 4
test esi, esi
jne 0x42c30a
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c2e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c2ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
jmp 0x42c3b6
mov ecx, dword [ebp - 0x10]
push 0
push 0
push ecx
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [0x46cc2c], 0x10
mov eax, dword [0x46cc18]
jae 0x42c333
mov eax, 0x46cc18
push esi
push eax
push 0
lea ecx, [ebp - 0x38]
call fcn.0040c460
lea ecx, [ebp - 0x38]
call fcn.0040bcc0
lea ecx, [ebp - 0x38]
call fcn.004091b0
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
mov dword [edx + 0x4dbc], 1
jmp 0x42c375
push 0x80070057
call fcn.004011e0
mov dword [ebx + 0x4dbc], 0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c394
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c3b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c3cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret