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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x4f0100]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x254], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x214]
push eax
push 0x104
mov dword [ebp - 0x270], edx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x238], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [edi]
mov eax, ecx
and eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x45bc57
mov eax, dword [edi + 8]
and eax, dword [edi + 0xc]
cmp eax, 0xffffffff
je 0x45bc57
mov eax, dword [ebp - 0x254]
add eax, ecx
mov dword [ebp - 0x240], eax
mov ecx, dword [eax]
movzx eax, word [ecx + ebx]
add ecx, ebx
add ecx, 4
lea eax, [ecx + eax*4]
mov ebx, eax
mov dword [ebp - 0x248], eax
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x45bb70
sub ebx, ecx
mov ecx, 2
lea eax, [ebx + 1]
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.0047bdec
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.0047d590
add esp, 0xc
push ebx
push edi
push 0xffffffffffffffff
push dword [ebp - 0x248]
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0047b4f0
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 ebx, eax
mov dword [ebp - 0x248], eax
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x45bbf0
sub ebx, ecx
mov ecx, 2
lea eax, [ebx + 1]
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.0047bdec
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.0047d590
add esp, 0xc
push ebx
push edi
push 0xffffffffffffffff
push dword [ebp - 0x248]
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call fcn.0047b4f0
mov esi, dword [ebp - 0x238]
add esp, 4
mov edi, dword [ebp - 0x26c]
mov ebx, dword [edi + 0x18]
mov edx, dword [ebp - 0x254]
add ebx, edx
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x248], 0
jb 0x45c185
ja 0x45bc82
cmp dword [edi + 0x10], 0
jbe 0x45c185
mov eax, dword [ebx + 8]
and eax, 0x10
or eax, 0
je 0x45bcbe
push dword [ebp - 0x268]
mov eax, dword [ebx + 0x28]
add eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x24c]
push esi
push eax
push dword [ebp - 0x258]
push edx
mov edx, dword [ebp - 0x270]
call fcn.0045bac0
add esp, 0x14
jmp 0x45c159
push 0x1000000
call fcn.0048b49b
add esp, 4
mov dword [ebp - 0x250], eax
test eax, eax
je 0x45c1a5
mov edx, dword [ebx]
add edx, dword [ebp - 0x24c]
movzx ecx, word [edx]
inc ecx
lea eax, [edx + ecx*4]
mov ecx, eax
mov dword [ebp - 0x230], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45bcf3
sub ecx, edx
mov dword [ebp - 0x240], ecx
lea eax, [ecx + 1]
mov ecx, 2
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.0047bdec
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.0047d590
add esp, 0xc
push dword [ebp - 0x240]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x230]
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x4deb74
push edi
call fcn.0048c5b4
push edi
mov dword [ebp - 0x230], eax
call fcn.0047b4f0
mov ecx, dword [ebx + 0x30]
add esp, 0xc
or ecx, dword [ebx + 0x34]
je 0x45bfb1
mov esi, dword [ebp - 0x238]
push esi
call fcn.0048c3cb
mov ecx, eax
mov edi, edx
mov eax, dword [ebp - 0x258]
add esp, 4
mov eax, dword [eax + 8]
add eax, dword [ebx + 0x28]
cdq
cmp ecx, eax
jne 0x45bd97
cmp edi, edx
je 0x45bdb6
mov eax, dword [ebp - 0x258]
push 0
mov ecx, dword [eax + 8]
add ecx, dword [ebx + 0x28]
mov eax, dword [eax + 0xc]
adc eax, dword [ebx + 0x2c]
push eax
push ecx
push esi
call fcn.0048b1a1
add esp, 0x10
mov ecx, dword [ebx + 0x38]
mov eax, ecx
and eax, dword [ebx + 0x3c]
cmp eax, 0xffffffff
je 0x45be7d
mov eax, dword [ebx + 0x30]
add eax, ecx
push eax
call fcn.0048b49b
mov ecx, dword [ebx + 0x38]
mov esi, eax
mov edi, dword [ebx + 0x30]
add esp, 4
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x234], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x23c], ecx
mov ecx, edi
and ecx, eax
mov dword [ebp - 0x260], eax
cmp ecx, 0xffffffff
jne 0x45be14
push dword [ebp - 0x238]
call fcn.0048c3cb
add esp, 4
mov dword [ebp - 0x260], edx
mov edi, eax
push dword [ebp - 0x23c]
mov edx, dword [ebp - 0x238]
mov ecx, esi
push dword [ebp - 0x234]
call fcn.004531e0
push dword [ebp - 0x260]
mov edx, dword [ebp - 0x268]
mov ecx, esi
push edi
push dword [ebp - 0x23c]
push dword [ebp - 0x234]
call fcn.0045b030
mov edx, dword [ebx + 0x38]
mov ecx, esi
add edx, esi
call fcn.00456020
push dword [ebx + 0x34]
mov ecx, dword [ebx + 0x38]
push dword [ebx + 0x30]
mov edx, dword [ebp - 0x230]
add ecx, esi
call fcn.00453160
push esi
call fcn.0048aa64
add esp, 0x24
jmp 0x45bfb1
mov edi, dword [ebx + 0x34]
xorps xmm0, xmm0
mov esi, dword [ebx + 0x30]
movlpd qword [ebp - 0x244], xmm0
test edi, edi
jb 0x45bfb1
ja 0x45bea0
test esi, esi
je 0x45bfb1
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x240], edx
mov ecx, esi
mov eax, edi
sub ecx, edx
sbb eax, dword [ebp - 0x234]
mov dword [ebp - 0x260], eax
jne 0x45bef0
cmp ecx, 0x1000000
ja 0x45bef0
mov eax, dword [ebp - 0x234]
mov ecx, esi
sub ecx, edx
mov dword [ebp - 0x260], ecx
mov ecx, edi
sbb ecx, eax
mov dword [ebp - 0x23c], ecx
jmp 0x45bf0a
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x260], 0x1000000
mov dword [ebp - 0x23c], 0
add esi, edx
adc edi, eax
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
jne 0x45bf29
push dword [ebp - 0x238]
call fcn.0048c3cb
add esp, 4
mov esi, eax
mov edi, edx
push dword [ebp - 0x23c]
mov edx, dword [ebp - 0x238]
push dword [ebp - 0x260]
mov ecx, dword [ebp - 0x250]
call fcn.004531e0
mov edx, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x250]
push edi
mov edi, dword [ebp - 0x23c]
push esi
mov esi, dword [ebp - 0x260]
push edi
push esi
call fcn.0045b030
mov edx, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x250]
push edi
push esi
call fcn.00453160
mov edx, dword [ebp - 0x240]
add esp, 0x20
mov eax, dword [ebp - 0x234]
add edx, esi
mov esi, dword [ebx + 0x30]
adc eax, edi
mov dword [ebp - 0x240], edx
mov edi, dword [ebx + 0x34]
mov dword [ebp - 0x234], eax
cmp eax, edi
jb 0x45beb8
ja 0x45bfb1
cmp edx, esi
jb 0x45beb8
push dword [ebp - 0x230]
call fcn.00483fbe
add esp, 4
push dword [ebp - 0x250]
call fcn.0048aa64
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 ecx, eax
mov dword [ebp - 0x230], eax
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45bff0
sub ecx, edx
mov dword [ebp - 0x240], ecx
lea eax, [ecx + 1]
mov ecx, 2
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.0047bdec
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.0047d590
add esp, 0xc
push dword [ebp - 0x240]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x230]
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov esi, eax
call fcn.0047b4f0
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 esi
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
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 ecx, eax
mov dword [ebp - 0x230], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c0e0
sub ecx, edx
mov dword [ebp - 0x240], ecx
lea eax, [ecx + 1]
mov ecx, 2
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.0047bdec
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.0047d590
add esp, 0xc
push dword [ebp - 0x240]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x230]
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebx + 8]
and eax, 0xfffffff9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call fcn.0047b4f0
mov esi, dword [ebp - 0x238]
add esp, 4
mov edi, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x248]
xor eax, eax
mov edx, dword [ebp - 0x254]
inc ecx
add ebx, 0x40
mov dword [ebp - 0x248], ecx
cmp eax, dword [edi + 0x14]
jb 0x45bc82
ja 0x45c185
cmp ecx, dword [edi + 0x10]
jb 0x45bc82
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.0047b4e2
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.0047b4e2
mov esp, ebp
pop ebp
ret