Function at 0x46c080
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567850
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5c3484]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d740
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x14], 0
call fcn.00486770
push str.icon_
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.0047b620
add esp, 0x10
mov edx, dword [ebp - 0x2c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c122
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46c139
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x46c155
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x46c163
call fcn.0041acd0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x46c3c3
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
push dword [ecx - 0xc]
mov dword [ebp - 0x1c], 8
push ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00433cc0
push str..png
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047b620
add esp, 0x20
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00413230
mov edx, dword [ebp - 0x24]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c1d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, edi
mov dword [ebp - 0x1c], 0
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c1fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0xc]
call fcn.00486170
test eax, eax
jne 0x46c29b
call fcn.0041acd0
mov ecx, eax
test ecx, ecx
je 0x46c3cd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x57affc
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.0040da50
test al, al
jne 0x46c248
push 0
push 0x57affc
mov ecx, ebx
call fcn.0040ec60
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c262
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c27c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x46c294
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x46c3a5
push dword [ebp - 0x14]
push eax
call fcn.00486570
push dword [ebp - 0x14]
movzx esi, al
push dword [ebp + 0xc]
push str.GetIconPath_sFilePath:_s_strIconPath:_s
call fcn.00434480
add esp, 0x14
test esi, esi
je 0x46c2e0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.0040b500
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 9
mov ebx, 2
mov eax, esi
jmp 0x46c2fe
push 0x57affc
lea ecx, [ebp - 0x18]
call fcn.0040d740
mov eax, dword [eax]
mov ebx, 4
mov esi, dword [ebp - 0x24]
mov dword [ebp - 4], 0xa
add eax, 0xfffffff0
mov dword [ebp - 0x1c], ebx
push eax
call fcn.0040b500
mov ecx, dword [ebp - 0x28]
add eax, 0x10
or ebx, 1
add esp, 4
mov dword [ecx], eax
test bl, 4
je 0x46c33a
mov edx, dword [ebp - 0x18]
and ebx, 0xfffffffb
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c33a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 2
je 0x46c356
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46c356
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c370
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c38a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46c3a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
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.0045fbca
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00408070
push 0x80004005
call fcn.00408070
int3