Function at 0x4018e0
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bf70
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5b5450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004186bc
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x401924
push 0x80004005
call fcn.00403490
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [esi]
or ebx, 0xffffffff
cmp eax, 0x4d4f4449
je 0x401957
cmp eax, 0x41444446
je 0x401957
mov byte [ebp - 0xd], 0
jmp 0x401cd8
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push 0x5bd48c
push eax
call fcn.00402de0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00403400
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40199c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.00419759
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x14]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esi], 0x4d4f4449
jne 0x401a86
call fcn.004186bc
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4019df
push 0x80004005
call fcn.00403490
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x18]
push 0x59194c
push eax
mov byte [ebp - 4], 3
call fcn.004030c0
add esp, 0xc
lea ecx, [ebp - 0x34]
push 0
push 0x21
push edi
call fcn.00419c79
test eax, eax
jne 0x401c1f
call fcn.004186bc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40191a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x591960
push 0x59193c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401dc0
push eax
lea eax, [ebp - 0x1c]
push 0x591968
push eax
call fcn.004030c0
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push 0
push 5
push esi
call fcn.0041d1ef
push 5
push 0x591be0
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 3
jmp 0x401bda
call fcn.004186bc
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x401aa2
push 0x80004005
call fcn.00403490
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x18]
push 0x5919dc
push eax
mov byte [ebp - 4], 5
call fcn.004030c0
add esp, 0xc
cmp dword [edi - 0xc], 0
jle 0x401b58
push 0x2f
push edi
call fcn.0052d3eb
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401b55
sub ebx, edi
cmp ebx, 0xffffffff
je 0x401b55
inc ebx
js 0x401b52
cmp ebx, dword [edi - 0xc]
jge 0x401b52
lea eax, [ebx + edi]
push 0x2f
push eax
call fcn.0052d3eb
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401b52
sub ebx, edi
cmp ebx, 0xffffffff
je 0x401b52
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402100
sub esp, 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00401d10
mov esi, dword [ebp - 0x1c]
push esi
call fcn.0052d1f5
add esi, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 5
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401ae7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x401ae7
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
push 0
push 0x1021
push edi
lea ecx, [ebp - 0x34]
call fcn.00419c79
test eax, eax
jne 0x401c1f
call fcn.004186bc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40191a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x591960
push 0x59193c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00401dc0
push eax
lea eax, [ebp - 0x1c]
push 0x5919f0
push eax
call fcn.004030c0
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push 0
push 5
push esi
call fcn.0041d1ef
push 5
push 0x591be0
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401bf3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401c13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0xd], 0
jmp 0x401ccc
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401c3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esi + 8]
add esi, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x4d4f4449
lea eax, [esi + 4]
mov dword [ebp - 0x20], eax
jne 0x401ca9
mov eax, dword [esi]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x401c94
mov edi, dword [ebp - 0x20]
mov eax, dword [ebx + edi]
push 1
push 0
push eax
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call dword [eax + 0x2c]
mov esi, dword [ebx + edi + 4]
add ebx, 8
push esi
lea eax, [ebx + edi]
push eax
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call dword [eax + 0x3c]
add ebx, esi
cmp ebx, dword [ebp - 0x1c]
jb 0x401c64
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push 0
push dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.00419f22
or ebx, 0xffffffff
jmp 0x401cc0
push dword [esi]
lea ecx, [ebp - 0x34]
push eax
call fcn.0041a000
push 0
push dword [esi]
lea ecx, [ebp - 0x34]
call fcn.00419f22
lea ecx, [ebp - 0x34]
call fcn.00419a37
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.004197cf
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x401cf6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret