Function at 0x404250
Capabilities:
Create directory
Get common file path
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x450008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x214]
push eax
push 0x104
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x254], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, dword [esi]
mov eax, ebx
and eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40431c
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x40431c
mov ecx, dword [ebp - 0x23c]
mov ecx, dword [ebx + ecx]
add ecx, dword [ebp - 0x234]
call fcn.004022f0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.0041b826
mov eax, dword [ebp - 0x23c]
add esp, 4
mov ecx, dword [ebx + eax]
add ecx, dword [ebp - 0x234]
call fcn.004022f0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.0041b826
mov esi, dword [ebp - 0x260]
add esp, 4
mov ebx, dword [esi + 0x18]
mov edx, dword [ebp - 0x23c]
add ebx, edx
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x264], 0
jb 0x4046f3
ja 0x404347
cmp dword [esi + 0x10], 0
jbe 0x4046f3
mov eax, dword [ebx + 8]
and eax, 0x10
or eax, 0
je 0x404383
push dword [ebp - 0x24c]
mov eax, dword [ebx + 0x28]
add eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x234]
push edi
push eax
push dword [ebp - 0x248]
push edx
mov edx, dword [ebp - 0x268]
call fcn.00404250
add esp, 0x14
jmp 0x4046c7
push 0x1000000
call fcn.00422762
add esp, 4
mov dword [ebp - 0x244], eax
test eax, eax
je 0x404713
mov ecx, dword [ebx]
add ecx, dword [ebp - 0x234]
call fcn.004022f0
mov esi, eax
push 0x449f1c
push esi
call fcn.0042514d
push esi
mov dword [ebp - 0x250], eax
call fcn.0041b826
mov ecx, dword [ebx + 0x30]
add esp, 0xc
or ecx, dword [ebx + 0x34]
je 0x4045f1
push edi
call fcn.00425801
mov esi, edx
mov ecx, eax
mov edx, dword [ebp - 0x248]
add esp, 4
mov eax, dword [ebx + 0x28]
add eax, dword [edx + 8]
cdq
cmp ecx, eax
jne 0x4043f5
cmp esi, edx
je 0x404414
mov edx, dword [ebp - 0x248]
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
push 0
add ecx, dword [edx + 8]
adc eax, dword [edx + 0xc]
push eax
push ecx
push edi
call fcn.00425e6e
add esp, 0x10
mov ecx, dword [ebx + 0x38]
mov eax, ecx
and eax, dword [ebx + 0x3c]
cmp eax, 0xffffffff
je 0x4044dc
mov eax, dword [ebx + 0x30]
add eax, ecx
push eax
call fcn.00422762
mov ecx, dword [ebx + 0x38]
add esp, 4
mov esi, dword [ebx + 0x30]
mov dword [ebp - 0x240], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x230], ecx
mov ecx, esi
mov dword [ebp - 0x258], eax
mov eax, dword [ebx + 0x34]
and ecx, eax
mov dword [ebp - 0x238], eax
cmp ecx, 0xffffffff
jne 0x404471
push edi
call fcn.00425801
add esp, 4
mov dword [ebp - 0x238], edx
mov esi, eax
push dword [ebp - 0x230]
mov edx, edi
mov edi, dword [ebp - 0x258]
push dword [ebp - 0x240]
mov ecx, edi
call fcn.00402470
push dword [ebp - 0x238]
mov edx, dword [ebp - 0x24c]
mov ecx, edi
push esi
push dword [ebp - 0x230]
push dword [ebp - 0x240]
call fcn.00404170
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, edi
call fcn.00403350
push dword [ebx + 0x34]
mov ecx, dword [ebx + 0x38]
push dword [ebx + 0x30]
mov edx, dword [ebp - 0x250]
add ecx, edi
call fcn.004023f0
push edi
call fcn.00422747
add esp, 0x24
jmp 0x4045f1
mov ecx, dword [ebx + 0x34]
xorps xmm0, xmm0
mov esi, dword [ebx + 0x30]
movlpd qword [ebp - 0x25c], xmm0
test ecx, ecx
jb 0x4045f1
ja 0x4044ff
test esi, esi
je 0x4045f1
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x258], eax
mov edi, esi
mov edx, ecx
sub edi, eax
sbb edx, dword [ebp - 0x230]
mov dword [ebp - 0x238], edx
jne 0x404533
cmp edi, 0x1000000
jbe 0x404542
mov edi, 0x1000000
mov dword [ebp - 0x238], 0
add esi, eax
mov eax, esi
adc ecx, dword [ebp - 0x230]
and eax, ecx
mov dword [ebp - 0x240], ecx
cmp eax, 0xffffffff
jne 0x40456f
push dword [ebp - 0x254]
call fcn.00425801
add esp, 4
mov dword [ebp - 0x240], edx
mov esi, eax
push dword [ebp - 0x238]
mov edx, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x244]
push edi
call fcn.00402470
push dword [ebp - 0x240]
mov edx, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x244]
push esi
mov esi, dword [ebp - 0x238]
push esi
push edi
call fcn.00404170
mov edx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x244]
push esi
push edi
call fcn.004023f0
mov eax, dword [ebp - 0x258]
add esp, 0x20
mov edx, dword [ebp - 0x230]
add eax, edi
mov ecx, dword [ebx + 0x34]
adc edx, esi
mov dword [ebp - 0x258], eax
mov esi, dword [ebx + 0x30]
mov dword [ebp - 0x230], edx
cmp edx, ecx
jb 0x404517
ja 0x4045f1
cmp eax, esi
jb 0x404517
push dword [ebp - 0x250]
call fcn.00422b16
add esp, 4
push dword [ebp - 0x244]
call fcn.00422747
mov ecx, dword [ebx]
add esp, 4
add ecx, dword [ebp - 0x234]
call fcn.004022f0
push 0
push 0x80
push 3
push 0
push 0
mov esi, eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call fcn.0041b826
mov eax, dword [ebx + 0x1c]
add esp, 4
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebx + 0x18]
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x224], ecx
mov ecx, dword [ebx + 0x20]
push eax
push edi
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, dword [ebp - 0x234]
call fcn.004022f0
push dword [ebx + 8]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call fcn.0041b826
mov edi, dword [ebp - 0x254]
add esp, 4
mov esi, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x264]
xor eax, eax
mov edx, dword [ebp - 0x23c]
inc ecx
add ebx, 0x40
mov dword [ebp - 0x264], ecx
cmp eax, dword [esi + 0x14]
jb 0x404347
ja 0x4046f3
cmp ecx, dword [esi + 0x10]
jb 0x404347
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041b61b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b61b
mov esp, ebp
pop ebp
ret