Function at 0x46e8c0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5034b8
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x559680]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0x400
mov byte [ebp - 4], 2
call fcn.004ddf94
add esp, 4
mov dword [ebp - 0xf4], eax
push 0x800
call fcn.004ddf94
add esp, 4
mov dword [ebp - 0xfc], eax
push 0x4000
call fcn.004ddf94
add esp, 4
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x100], eax
call fcn.0046df80
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
mov byte [ebp - 4], 3
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xe8], esi
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
mov byte [ebp - 4], 4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xe4], edi
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
mov byte [ebp - 4], 5
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x11c], ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.0046e410
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0046e340
lea ecx, [ebp - 0xa0]
call fcn.0046e360
xor eax, eax
mov dword [ebp - 0x104], eax
cmp eax, dword [ebp - 0x124]
jge 0x46ef77
lea ecx, [ebp - 0xa0]
test eax, eax
jne 0x46e9ed
call fcn.0046e360
jmp 0x46e9f2
call fcn.0046e3a0
lea ecx, [ebp - 0xa0]
call fcn.0046e520
push 0x400
push 0
push dword [ebp - 0xf4]
call fcn.004e0ad0
mov esi, dword [ebp - 0xfc]
push 0x800
push 0
push esi
call fcn.004e0ad0
add esp, 0x18
lea eax, [ebp - 0xdc]
push 0
push 0
push 0
push 0
push 0x400
push dword [ebp - 0xf4]
lea ecx, [ebp - 0xa0]
push eax
call fcn.0046e2e0
push 0x400
push esi
push 0xffffffffffffffff
push dword [ebp - 0xf4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test esi, esi
jne 0x46ea6d
xor ecx, ecx
jmp 0x46ea81
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ea72
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xe8]
call fcn.00409230
mov eax, dword [ebp + 8]
lea esi, [edi - 0x10]
lea edx, [eax - 0x10]
cmp edx, esi
je 0x46eaf3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46eade
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x46eade
push edx
call fcn.00404d60
add esp, 4
mov dword [ebp - 0xe0], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x46ead3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xe0]
lea edi, [eax + 0x10]
mov dword [ebp - 0xe4], edi
jmp 0x46eaf3
push dword [eax - 0xc]
lea ecx, [ebp - 0xe4]
push eax
call fcn.00409230
mov edi, dword [ebp - 0xe4]
mov esi, dword [ebp - 0xe8]
push 0x51779c
push esi
call fcn.004e6079
add esp, 8
test eax, eax
jne 0x46eb10
or eax, 0xffffffff
jmp 0x46eb14
sub eax, esi
sar eax, 1
mov dword [ebp - 0xe0], eax
test eax, eax
js 0x46edca
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00406960
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x110]
push eax
mov byte [ebp - 4], 7
call fcn.00402920
add esp, 0xc
mov edx, dword [eax]
lea ecx, [edi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 8
mov dword [ebp - 0xec], ecx
cmp eax, ecx
je 0x46ec40
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0xf8], eax
jl 0x46ec2b
mov eax, dword [edx - 0x10]
lea edi, [edx - 0x10]
mov dword [ebp - 0xf0], eax
cmp eax, dword [ecx]
jne 0x46ec2b
mov eax, dword [eax]
mov ecx, dword [ebp - 0xf0]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x46ebb7
cmp ecx, dword [edi]
jne 0x46ebb7
mov eax, 1
lock xadd dword [edx], eax
jmp 0x46ec00
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0xf0], edx
test edx, edx
jne 0x46ebd1
call fcn.00409540
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004e00c8
mov edi, dword [ebp - 0xf0]
add esp, 0x10
mov ecx, dword [ebp - 0xf8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46ec20
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0x10
mov dword [ebp - 0xe4], edi
jmp 0x46ec40
push dword [edx - 0xc]
lea ecx, [ebp - 0xe4]
push edx
call fcn.00409230
mov edi, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x110]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ec64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x114]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ec88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esi - 0xc]
sub eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe8]
dec eax
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004077d0
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 9
mov dword [ebp - 0xf0], ecx
cmp eax, ecx
je 0x46ed9d
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0xf8], eax
jl 0x46ed88
mov eax, dword [edx - 0x10]
lea esi, [edx - 0x10]
mov dword [ebp - 0xec], eax
cmp eax, dword [ecx]
jne 0x46ed88
mov eax, dword [eax]
mov ecx, dword [ebp - 0xec]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x46ed14
cmp ecx, dword [esi]
jne 0x46ed14
mov eax, 1
lock xadd dword [edx], eax
jmp 0x46ed5d
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0xec], edx
test edx, edx
jne 0x46ed2e
call fcn.00409540
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004e00c8
mov esi, dword [ebp - 0xec]
add esp, 0x10
mov ecx, dword [ebp - 0xf8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46ed7d
mov edx, dword [ebp - 0xf0]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0xe8], esi
jmp 0x46ed9d
push dword [edx - 0xc]
lea ecx, [ebp - 0xe8]
push edx
call fcn.00409230
mov esi, dword [ebp - 0xe8]
mov edx, dword [ebp - 0x108]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46eaf9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46eaf9
mov esi, dword [ebp - 0xfc]
test esi, esi
jne 0x46edd8
xor ecx, ecx
jmp 0x46edef
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ede0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xe8]
call fcn.00409230
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00402920
add esp, 0xc
mov edx, dword [eax]
lea esi, [edi - 0x10]
lea ecx, [edx - 0x10]
mov byte [ebp - 4], 0xa
cmp ecx, esi
je 0x46ee7e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46ee69
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x46ee69
push ecx
call fcn.00404d60
add esp, 4
mov dword [ebp - 0xec], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x46ee5e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xec]
lea edi, [eax + 0x10]
mov dword [ebp - 0xe4], edi
jmp 0x46ee7e
push dword [edx - 0xc]
lea ecx, [ebp - 0xe4]
push edx
call fcn.00409230
mov edi, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x10c]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46eea2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xe8]
push 0x2f
push esi
call fcn.004e1878
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x46eebe
or ecx, 0xffffffff
jmp 0x46eec2
sub ecx, esi
sar ecx, 1
mov eax, dword [esi - 0xc]
dec eax
push 0
cmp ecx, eax
jne 0x46eeea
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0xa0]
call fcn.0046e2a0
mov eax, dword [ebp - 0x104]
inc eax
jmp 0x46e9ca
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe0], eax
jmp 0x46ef10
push 0x4000
push dword [ebp - 0x100]
lea ecx, [ebp - 0xa0]
call fcn.0046e670
test eax, eax
jne 0x46ef59
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xa0]
call fcn.0046e2a0
mov eax, dword [ebp - 0x104]
inc eax
jmp 0x46e9ca
push 0
lea ecx, [ebp - 0x118]
push ecx
push eax
push dword [ebp - 0x100]
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x46ef10
push dword [ebp - 0xf4]
call fcn.004e00c3
mov eax, dword [ebp - 0xfc]
push eax
call fcn.004e00c3
push dword [ebp - 0x100]
call fcn.004e00c3
add ebx, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 5
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46efba
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46efda
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46eff7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xa0]
call fcn.0046e0d0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46f022
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x46f043
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x46f05f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004df4f4
mov esp, ebp
pop ebp
ret