Function at 0x405930
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6158
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x644], ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c0]
push 0x174
xorps xmm0, xmm0
mov byte [ebp - 0x3e0], 0
push 0
push eax
movdqu xmmword [ebp - 0x3df], xmm0
mov dword [ebp - 0x3c7], 0
movq qword [ebp - 0x3cf], xmm0
mov word [ebp - 0x3c3], 0
mov byte [ebp - 0x3c1], 0
call fcn.0048d420
add esp, 0xc
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x4059fa
cmp byte [esi], 0
jne 0x4059df
xor ecx, ecx
jmp 0x4059ed
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4059e4
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x228]
call fcn.00401d20
mov dword [ebp - 4], 1
mov dword [ebp - 0x1e0], 0xf
mov dword [ebp - 0x1e4], 0
mov byte [ebp - 0x1f4], 0
push 1
push 0x4b3108
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 2
call fcn.00401d20
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x640]
push eax
lea ecx, [ebp - 0x228]
call fcn.004093e0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1e0], 0x10
jb 0x405a6a
push dword [ebp - 0x1f4]
call fcn.00488361
add esp, 4
mov edi, dword [ebp - 0x63c]
mov eax, 0x92492493
mov esi, dword [ebp - 0x640]
mov ecx, edi
sub ecx, esi
mov dword [ebp - 0x1e0], 0xf
imul ecx
mov dword [ebp - 0x1e4], 0
add edx, ecx
mov byte [ebp - 0x1f4], 0
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
je 0x405f48
cmp dword [esi + 0x14], 0x10
jb 0x405ab9
mov esi, dword [esi]
push 0x64
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x3c0]
push eax
call esi
mov eax, dword [ebp - 0x640]
add eax, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x405adc
mov eax, dword [eax]
push 0x100
push eax
lea eax, [ebp - 0x35c]
push eax
call esi
mov eax, dword [ebp - 0x640]
add eax, 0x38
cmp dword [eax + 0x14], 0x10
jb 0x405afc
mov eax, dword [eax]
push 0x20
push eax
lea eax, [ebp - 0x3e0]
push eax
call esi
mov eax, dword [ebp - 0x640]
add eax, 0x54
cmp dword [eax + 0x14], 0x10
jb 0x405b19
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.00489a10
add esp, 0xc
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x3e0]
mov byte [ebp - 0x250], 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
test eax, eax
jle 0x405b63
jmp 0x405b50
cmp byte [ebp + ecx - 0x3e0], 0x30
jne 0x405c6d
inc ecx
cmp ecx, eax
jl 0x405b50
push 0x103
lea eax, [ebp - 0x117]
mov byte [ebp - 0x118], 0
push 0
push eax
call fcn.0048d420
mov eax, dword [ebp - 0x644]
lea ecx, [ebp - 0x35c]
add esp, 0xc
cmp dword [eax + 0x2b0], 1
push ecx
jne 0x405bba
push str.patchesdata
add eax, 0x74
push eax
push 0x4b311c
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00488e61
add esp, 0x18
jmp 0x405bd7
add eax, 0x74
push eax
push str._s_s
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00488e61
add esp, 0x14
push ecx
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x244]
call fcn.00402fa0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x405bf4
mov eax, dword [eax]
lea ecx, [ebp - 0x630]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x405c10
mov byte [ebp - 0x634], 0
jmp 0x405c37
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x614], 0
jne 0x405c30
cmp dword [ebp - 0x610], 0
mov byte [ebp - 0x634], 0
je 0x405c37
mov byte [ebp - 0x634], 1
cmp dword [ebp - 0x230], 8
jb 0x405c4e
push dword [ebp - 0x244]
call fcn.00488361
add esp, 4
cmp byte [ebp - 0x634], 0
jne 0x405c6d
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 0x250], 1
mov eax, dword [ebp - 0x640]
lea ecx, [ebp - 0x20c]
push 0xffffffffffffffff
add eax, 0x70
mov dword [ebp - 0x1f8], 0xf
push 0
push eax
mov dword [ebp - 0x1fc], 0
mov byte [ebp - 0x20c], 0
call fcn.00401f70
mov dword [ebp - 0x1c4], 0xf
mov dword [ebp - 0x1c8], 0
mov byte [ebp - 0x1d8], 0
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
push 1
push 0
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x20c]
mov byte [ebp - 0x634], 0x3a
call fcn.00408bf0
mov esi, eax
cmp esi, 0xffffffff
je 0x405e44
push esi
push 0
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00408a70
mov edi, eax
lea eax, [ebp - 0x1d8]
cmp eax, edi
je 0x405d62
cmp dword [ebp - 0x1c4], 0x10
jb 0x405d3b
push dword [ebp - 0x1d8]
call fcn.00488361
add esp, 4
push edi
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1c4], 0xf
mov dword [ebp - 0x1c8], 0
mov byte [ebp - 0x1d8], 0
call fcn.004028a0
cmp dword [ebp - 0x1dc], 0x10
jb 0x405d79
push dword [ebp - 0x1f0]
call fcn.00488361
add esp, 4
push dword [ebp - 0x1fc]
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00408a70
mov esi, eax
lea eax, [ebp - 0x1c0]
cmp eax, esi
je 0x405ddf
cmp dword [ebp - 0x1ac], 0x10
jb 0x405db8
push dword [ebp - 0x1c0]
call fcn.00488361
add esp, 4
push esi
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
call fcn.004028a0
cmp dword [ebp - 0x1dc], 0x10
jb 0x405df6
push dword [ebp - 0x1f0]
call fcn.00488361
add esp, 4
cmp dword [ebp - 0x1c4], 0x10
lea eax, [ebp - 0x1d8]
push 0xa
cmovae eax, dword [ebp - 0x1d8]
push 0
push eax
call fcn.00489a10
add esp, 0xc
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x1ac], 0x10
lea eax, [ebp - 0x1c0]
cmovae eax, dword [ebp - 0x1c0]
push 0xa
push 0
push eax
call fcn.00489a10
add esp, 0xc
mov dword [ebp - 0x258], eax
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x35c]
mov ecx, 0x65
mov dword [ebp - 0x1a8], eax
lea esi, [ebp - 0x3e0]
lea edi, [ebp - 0x1a4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x644]
lea eax, [ebp - 0x1a8]
push eax
je 0x405e89
lea ecx, [esi + 0x10]
call fcn.004098c0
push eax
add eax, 0x10
push eax
push ecx
lea ecx, [esi + 0x10]
jmp 0x405e9a
lea ecx, [esi + 8]
call fcn.004098c0
push eax
add eax, 0x10
push eax
push ecx
lea ecx, [esi + 8]
lea eax, [ebp - 0x648]
push eax
call fcn.00409940
cmp dword [ebp - 0x1ac], 0x10
jb 0x405ebd
push dword [ebp - 0x1c0]
call fcn.00488361
add esp, 4
cmp dword [ebp - 0x1c4], 0x10
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jb 0x405eef
push dword [ebp - 0x1d8]
call fcn.00488361
add esp, 4
cmp dword [ebp - 0x1f8], 0x10
mov dword [ebp - 0x1c4], 0xf
mov dword [ebp - 0x1c8], 0
mov byte [ebp - 0x1d8], 0
jb 0x405f21
push dword [ebp - 0x20c]
call fcn.00488361
add esp, 4
mov edi, dword [ebp - 0x63c]
mov esi, dword [ebp - 0x640]
mov dword [ebp - 0x1f8], 0xf
mov dword [ebp - 0x1fc], 0
mov byte [ebp - 0x20c], 0
test esi, esi
je 0x405f7f
push edi
push esi
call fcn.00408ef0
push dword [ebp - 0x640]
call fcn.00488361
add esp, 4
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
cmp dword [ebp - 0x214], 0x10
jb 0x405f96
push dword [ebp - 0x228]
call fcn.00488361
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret 8