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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56db00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5cb464]
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.0040e670
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x14], 0
call fcn.0048f7d0
push str.icon_
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.00484b90
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 0x4761e2
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 0x4761f9
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 0x476215
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x476223
call fcn.0041c100
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x476483
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.00435010
push str..png
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00484b90
add esp, 0x20
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00414160
mov edx, dword [ebp - 0x24]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x476298
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 0x4762bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0xc]
call fcn.0048f1d0
test eax, eax
jne 0x47635b
call fcn.0041c100
mov ecx, eax
test ecx, ecx
je 0x47648d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x580ffc
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.0040e980
test al, al
jne 0x476308
push 0
push 0x580ffc
mov ecx, ebx
call fcn.0040fb90
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x476322
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 0x47633c
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 0x476354
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x476465
push dword [ebp - 0x14]
push eax
call fcn.0048f5d0
push dword [ebp - 0x14]
movzx esi, al
push dword [ebp + 0xc]
push str.GetIconPath_sFilePath:_s_strIconPath:_s
call fcn.00435810
add esp, 0x14
test esi, esi
je 0x4763a0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.0040c430
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 9
mov ebx, 2
mov eax, esi
jmp 0x4763be
push 0x580ffc
lea ecx, [ebp - 0x18]
call fcn.0040e670
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.0040c430
mov ecx, dword [ebp - 0x28]
add eax, 0x10
or ebx, 1
add esp, 4
mov dword [ecx], eax
test bl, 4
je 0x4763fa
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 0x4763fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 2
je 0x476416
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x476416
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 0x476430
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 0x47644a
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 0x476462
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.0046997a
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00408fa0
push 0x80004005
call fcn.00408fa0
int3