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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4e20c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x268], eax
mov edi, ecx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x274], edx
push eax
push 0x104
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esi]
mov edx, 2
mov eax, ecx
and eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x450ee6
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x450ee6
mov eax, dword [ebp - 0x258]
add eax, ecx
mov dword [ebp - 0x240], eax
mov ecx, dword [eax]
movzx eax, word [ecx + edi]
add ecx, edi
add ecx, 4
lea eax, [ecx + eax*4]
mov edi, eax
mov dword [ebp - 0x248], eax
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x450e00
sub edi, ecx
xor ebx, ebx
lea eax, [edi + 1]
mul edx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0046f550
add esp, 4
mov esi, eax
push ebx
push 0
push esi
call fcn.004709e0
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x248]
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.0046ea83
mov ecx, dword [ebp - 0x240]
add esp, 4
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x24c]
movzx eax, word [ecx]
add ecx, 4
lea eax, [ecx + eax*4]
mov edi, eax
mov dword [ebp - 0x248], eax
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x450e80
sub edi, ecx
xor ebx, ebx
mov ecx, 2
lea eax, [edi + 1]
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0046f550
add esp, 4
mov esi, eax
push ebx
push 0
push esi
call fcn.004709e0
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x248]
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.0046ea83
mov ebx, dword [ebp - 0x234]
add esp, 4
mov esi, dword [ebp - 0x270]
mov edi, dword [esi + 0x18]
mov edx, dword [ebp - 0x258]
add edi, edx
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x248], 0
jb 0x451406
ja 0x450f17
cmp dword [esi + 0x10], 0
jbe 0x451406
mov eax, dword [edi + 8]
and eax, 0x10
or eax, 0
je 0x450f53
push dword [ebp - 0x268]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0x24c]
push ebx
push eax
push dword [ebp - 0x25c]
push edx
mov edx, dword [ebp - 0x274]
call fcn.00450d50
add esp, 0x14
jmp 0x4513d4
push 0x1000000
call fcn.0047d47d
add esp, 4
mov dword [ebp - 0x250], eax
test eax, eax
je 0x451426
mov edx, dword [edi]
add edx, dword [ebp - 0x24c]
movzx ecx, word [edx]
inc ecx
lea eax, [edx + ecx*4]
mov edi, eax
mov dword [ebp - 0x240], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x450f88
sub edi, ecx
xor ebx, ebx
mov ecx, 2
lea eax, [edi + 1]
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0046f550
add esp, 4
mov esi, eax
push ebx
push 0
push esi
call fcn.004709e0
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x240]
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x4d07e0
push esi
call fcn.0047de88
push esi
mov dword [ebp - 0x26c], eax
call fcn.0046ea83
mov ebx, dword [ebp - 0x254]
add esp, 0xc
mov ecx, dword [ebx + 0x30]
or ecx, dword [ebx + 0x34]
je 0x451240
mov esi, dword [ebp - 0x234]
push esi
call fcn.0047e547
mov ecx, eax
mov edi, edx
mov eax, dword [ebp - 0x25c]
add esp, 4
mov eax, dword [eax + 8]
add eax, dword [ebx + 0x28]
cdq
cmp ecx, eax
jne 0x451026
cmp edi, edx
je 0x451045
mov edx, dword [ebp - 0x25c]
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 esi
call fcn.0047d183
add esp, 0x10
mov ecx, dword [ebx + 0x38]
mov eax, ecx
and eax, dword [ebx + 0x3c]
cmp eax, 0xffffffff
je 0x45110c
mov eax, dword [ebx + 0x30]
add eax, ecx
push eax
call fcn.0047d47d
mov ecx, dword [ebx + 0x38]
mov esi, eax
mov edi, dword [ebx + 0x30]
add esp, 4
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x230], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x238], ecx
mov ecx, edi
and ecx, eax
mov dword [ebp - 0x260], eax
cmp ecx, 0xffffffff
jne 0x4510a3
push dword [ebp - 0x234]
call fcn.0047e547
add esp, 4
mov dword [ebp - 0x260], edx
mov edi, eax
push dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
mov ecx, esi
push dword [ebp - 0x230]
call fcn.0044e630
push dword [ebp - 0x260]
mov edx, dword [ebp - 0x268]
mov ecx, esi
push edi
push dword [ebp - 0x238]
push dword [ebp - 0x230]
call fcn.00450c70
mov edx, dword [ebx + 0x38]
mov ecx, esi
add edx, esi
call fcn.0044f790
push dword [ebx + 0x34]
mov ecx, dword [ebx + 0x38]
push dword [ebx + 0x30]
mov edx, dword [ebp - 0x26c]
add ecx, esi
call fcn.0044e5b0
push esi
call fcn.0047ca46
add esp, 0x24
jmp 0x451240
mov edi, dword [ebx + 0x34]
xorps xmm0, xmm0
mov esi, dword [ebx + 0x30]
movlpd qword [ebp - 0x244], xmm0
test edi, edi
jb 0x451240
ja 0x45112f
test esi, esi
je 0x451240
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x240], edx
mov ecx, esi
mov eax, edi
sub ecx, edx
sbb eax, dword [ebp - 0x230]
mov dword [ebp - 0x260], eax
jne 0x45117f
cmp ecx, 0x1000000
ja 0x45117f
mov eax, dword [ebp - 0x230]
mov ecx, esi
sub ecx, edx
mov dword [ebp - 0x260], ecx
mov ecx, edi
sbb ecx, eax
mov dword [ebp - 0x238], ecx
jmp 0x451199
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x260], 0x1000000
mov dword [ebp - 0x238], 0
add esi, edx
adc edi, eax
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
jne 0x4511b8
push dword [ebp - 0x234]
call fcn.0047e547
add esp, 4
mov esi, eax
mov edi, edx
push dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
push dword [ebp - 0x260]
mov ecx, dword [ebp - 0x250]
call fcn.0044e630
mov edx, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x250]
push edi
mov edi, dword [ebp - 0x238]
push esi
mov esi, dword [ebp - 0x260]
push edi
push esi
call fcn.00450c70
mov edx, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x250]
push edi
push esi
call fcn.0044e5b0
mov edx, dword [ebp - 0x240]
add esp, 0x20
mov eax, dword [ebp - 0x230]
add edx, esi
mov esi, dword [ebx + 0x30]
adc eax, edi
mov dword [ebp - 0x240], edx
mov edi, dword [ebx + 0x34]
mov dword [ebp - 0x230], eax
cmp eax, edi
jb 0x451147
ja 0x451240
cmp edx, esi
jb 0x451147
push dword [ebp - 0x26c]
call fcn.004773fe
add esp, 4
push dword [ebp - 0x250]
call fcn.0047ca46
mov ecx, dword [ebx]
add esp, 4
add ecx, dword [ebp - 0x24c]
movzx eax, word [ecx]
add ecx, 4
lea eax, [ecx + eax*4]
mov edi, eax
mov dword [ebp - 0x240], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x451278
sub edi, ecx
xor ebx, ebx
mov ecx, 2
lea eax, [edi + 1]
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0046f550
add esp, 4
mov esi, eax
push ebx
push 0
push esi
call fcn.004709e0
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x240]
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call fcn.0046ea83
mov ebx, dword [ebp - 0x254]
add esp, 4
mov eax, dword [ebx + 0x1c]
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 - 0x24c]
movzx eax, word [ecx]
add ecx, 4
lea eax, [ecx + eax*4]
mov edi, eax
mov dword [ebp - 0x240], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x451361
sub edi, ecx
xor ebx, ebx
mov ecx, 2
lea eax, [edi + 1]
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0046f550
add esp, 4
mov esi, eax
push ebx
push 0
push esi
call fcn.004709e0
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x240]
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp - 0x254]
mov eax, dword [edi + 8]
and eax, 0xfffffff9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call fcn.0046ea83
mov ebx, dword [ebp - 0x234]
add esp, 4
mov esi, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x248]
add edi, 0x40
mov edx, dword [ebp - 0x258]
inc ecx
xor eax, eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x254], edi
cmp eax, dword [esi + 0x14]
jb 0x450f17
ja 0x451406
cmp ecx, dword [esi + 0x10]
jb 0x450f17
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.0046ea75
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.0046ea75
mov esp, ebp
pop ebp
ret