Function at 0x4fb4c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a87c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 1
call fcn.00401980
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4fb50d
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fb522
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4fb524
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._sIcons_s
push eax
call fcn.004023f0
mov edi, dword [ebp - 0x10]
add esp, 0x10
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4fb56f
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fb584
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4fb588
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push str._sGame.Ico
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x14]
mov edx, str.IDR_CUSTOM_FOR_EXTRACE_ICON
mov ecx, dword [ebx + 0x3f0]
push str.CUSTOM
push esi
call fcn.004e1010
lea edx, [esi - 0x10]
mov dword [ebp - 0x18], eax
or esi, 0xffffffff
mov byte [ebp - 4], 2
add esp, 0x14
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test ecx, ecx
jg 0x4fb600
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fb5fd
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4fb600
call dword [ebp - 0x14]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4fb630
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fb62e
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4fb630
call edx
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4fb665
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fb661
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4fb665
mov ecx, edx
call edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x4fb69b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fb697
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4fb69b
mov ecx, edx
call esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8