Function at 0x4126d0
Capabilities:
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb862
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x278], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x278], 1
test eax, eax
je 0x41286e
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], cx
mov ebx, dword [eax + 0x10]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x412790
mov eax, dword [ebx]
push 0x4c9cec
push 0x137
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x4c758c]
mov ecx, ebx
call esi
mov edx, eax
test edx, edx
je 0x4127bc
jmp 0x412795
mov edx, 0x4c9bd0
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4127a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x270]
call fcn.004038a0
mov ecx, dword [ebp - 0x260]
mov bl, 1
test ecx, ecx
jne 0x41288c
push 0x208
push ecx
lea eax, [ebp - 0x258]
xor bl, bl
push eax
call fcn.00495790
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x412824
lea ecx, [ebp - 0x258]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412802
sub ecx, edx
lea eax, [ebp - 0x258]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.004038a0
mov ecx, dword [ebp - 0x260]
test ecx, ecx
jne 0x41288c
mov edx, dword [ebp - 0x25c]
cmp edx, 8
jb 0x41286e
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412864
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ae9
push edx
push ecx
call fcn.00450975
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
cmovae eax, dword [ebp - 0x270]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4128ba
push 1
push 0x4c9bb8
lea ecx, [ebp - 0x270]
call fcn.004052f0
test bl, bl
je 0x41291e
push 3
push 0x4c9cfc
lea ecx, [ebp - 0x270]
call fcn.004052f0
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
cmovae eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x41290c
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
push 0
cmovae eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x4c9bb8
lea ecx, [ebp - 0x270]
call fcn.004052f0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0x40
mov esi, eax
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00495790
push esi
push str._8.8lx
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00412b00
lea eax, [ebp - 0x270]
add esp, 0x1c
cmp edi, eax
je 0x412a75
cmp dword [ebp - 0x25c], 8
lea edx, [ebp - 0x270]
mov eax, dword [ebp - 0x260]
cmovae edx, dword [ebp - 0x270]
mov ebx, dword [edi + 0x14]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x280], edx
cmp eax, ebx
ja 0x4129b9
mov dword [ebp - 0x274], edi
mov ecx, edi
cmp ebx, 8
jb 0x412997
mov ecx, dword [edi]
mov dword [ebp - 0x274], ecx
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ecx
call fcn.00495210
mov eax, dword [ebp - 0x274]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
jmp 0x412a75
cmp eax, 0x7ffffffe
ja 0x412aee
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4129d8
mov esi, SysReAllocString
jmp 0x4129f6
mov ecx, ebx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x4129ee
mov esi, SysReAllocString
jmp 0x4129f6
lea eax, [ecx + ebx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00403d40
mov ecx, eax
mov dword [edi + 0x14], esi
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x274], ecx
mov dword [edi + 0x10], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x280]
push ecx
call fcn.00495210
mov eax, dword [ebp - 0x274]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
cmp ebx, 8
jb 0x412a73
mov eax, dword [edi]
lea ebx, [ebx*2 + 2]
cmp ebx, 0x1000
jb 0x412a60
mov ecx, dword [eax - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ae9
mov eax, ecx
push ebx
push eax
lfence
call fcn.00450975
mov eax, dword [ebp - 0x274]
add esp, 8
mov dword [edi], eax
push 4
push str.obk.
mov ecx, edi
call fcn.004052f0
lea ecx, [ebp - 0x50]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a90
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004052f0
mov edx, dword [ebp - 0x25c]
cmp edx, 8
jb 0x41286e
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412864
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412864
call fcn.004984ff
call fcn.00401e30
int3