Function at 0x40d290
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4805fd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x496004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x498871], 0
jne 0x40d2e4
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.0040a910
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0x30]
mov ebx, eax
call fcn.00436a37
add esp, 4
jmp 0x40d2ed
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d30b
test bl, 0x10
je 0x40d30b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
mov ebx, eax
cmp eax, 0x5c
je 0x40d31a
cmp ebx, 0x2f
jne 0x40d345
movzx eax, word [esi + 2]
mov ecx, eax
cmp eax, 0x5c
je 0x40d32a
cmp ecx, 0x2f
jne 0x40d345
cmp word [esi + 4], 0x3f
jne 0x40d345
movzx eax, word [esi + 6]
mov ecx, eax
cmp eax, 0x5c
je 0x40d341
cmp ecx, 0x2f
jne 0x40d345
mov al, 1
jmp 0x40d347
xor al, al
test al, al
lea ecx, [esi + 8]
cmove ecx, esi
movzx eax, word [ecx]
mov edx, eax
cmp eax, 0x61
jb 0x40d35e
cmp edx, 0x7a
jbe 0x40d368
cmp edx, 0x41
jb 0x40d39a
cmp edx, 0x5a
ja 0x40d39a
cmp word [ecx + 2], 0x3a
jne 0x40d39a
movzx eax, word [ecx + 4]
mov edx, eax
cmp eax, 0x5c
je 0x40d37f
cmp edx, 0x2f
jne 0x40d39a
cmp word [ecx + 6], 0
jne 0x40d39a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00410860
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
test bx, bx
je 0x40d3bb
nop
inc edi
cmp word [esi + edi*2], 0
jne 0x40d3b0
mov dword [ebp - 0x14], edi
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
add esp, 4
mov dword [ebp - 0x20], edi
mov ebx, eax
mov dword [ebp - 0x1c], edi
lea eax, [edi*2 + 2]
mov dword [ebp - 0x24], ebx
push eax
push esi
push ebx
call fcn.00441fd0
add esp, 0xc
mov dword [ebp - 4], 0
test edi, edi
je 0x40d44f
lea eax, [ebx - 2]
movzx ecx, word [eax + edi*2]
lea eax, [eax + edi*2]
cmp ecx, 0x5c
je 0x40d426
nop
cmp cx, 0x2f
je 0x40d426
cmp eax, ebx
je 0x40d44f
movzx ecx, word [eax - 2]
sub eax, 2
cmp ecx, 0x5c
jne 0x40d410
sub eax, ebx
sar eax, 1
js 0x40d44f
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x40d44f
cmp edi, 1
jne 0x40d441
mov byte [ebp - 0xd], 1
jmp 0x40d72d
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov word [ebx + ecx*2], ax
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
add esp, 4
mov dword [ebp - 0x30], eax
lea ecx, [esi + esi]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
push ecx
push ebx
push eax
call fcn.00441fd0
add esp, 0xc
mov byte [ebp - 4], 1
mov esi, edi
nop word [eax + eax]
cmp byte [0x498871], 0
jne 0x40d4c7
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.0040a910
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x3c]
mov edi, eax
call fcn.00436a37
add esp, 4
test edi, edi
jne 0x40d62f
mov edi, dword [ebp - 0x14]
jmp 0x40d4d8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d62f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d592
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
push 8
movlpd qword [ebp - 0x78], xmm0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0
mov word [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.00436ba1
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0
add esp, 4
mov dword [ebp - 0x48], 3
mov word [eax], cx
push ebx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.0040f070
test al, al
jne 0x40d571
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
call fcn.00436a37
add esp, 4
jmp 0x40d592
mov ebx, dword [ebp - 0x58]
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
shr ebx, 4
call fcn.00436a37
add esp, 4
test bl, 1
mov ebx, dword [ebp - 0x24]
jne 0x40d62f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40d74b
test edi, edi
je 0x40d74b
lea esi, [edi - 1]
movzx eax, word [ebx + esi*2]
lea esi, [ebx + esi*2]
cmp eax, 0x5c
je 0x40d5da
nop word [eax + eax]
cmp ax, 0x2f
je 0x40d5da
cmp esi, ebx
je 0x40d74b
movzx eax, word [esi - 2]
sub esi, 2
cmp eax, 0x5c
jne 0x40d5c0
sub esi, ebx
sar esi, 1
js 0x40d74b
test esi, esi
je 0x40d74b
cmp esi, 1
jne 0x40d608
movzx eax, word [ebx]
mov ecx, eax
cmp eax, 0x5c
je 0x40d74b
cmp ecx, 0x2f
je 0x40d74b
lea eax, [esi + 1]
cmp dword [ebp - 0x18], eax
jae 0x40d74b
cmp esi, edi
jae 0x40d490
mov edi, esi
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov word [ebx + esi*2], ax
jmp 0x40d490
mov edi, dword [ebp - 0x2c]
cmp esi, edi
jge 0x40d71e
nop word [eax + eax]
mov edx, dword [ebp - 0x30]
add edx, 2
movzx eax, word [edx + esi*2]
lea edx, [edx + esi*2]
mov ecx, edx
test ax, ax
je 0x40d674
cmp ax, 0x5c
je 0x40d6f4
cmp ax, 0x2f
je 0x40d6f4
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x40d654
mov esi, edi
cmp esi, dword [ebp - 0x1c]
jbe 0x40d6aa
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
add esp, 4
mov edi, eax
push ebx
call fcn.00436a37
mov ebx, edi
mov dword [ebp - 0x1c], esi
add esp, 4
mov dword [ebp - 0x24], ebx
lea edi, [esi + esi]
test esi, esi
je 0x40d6be
push edi
push dword [ebp - 0x30]
push ebx
call fcn.00441fd0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x20], esi
mov word [edi + ebx], ax
cmp byte [0x498871], al
jne 0x40d706
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.0040a910
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x3c]
mov edi, eax
call fcn.00436a37
add esp, 4
test edi, edi
jmp 0x40d711
sub ecx, edx
sar ecx, 1
js 0x40d674
inc esi
add esi, ecx
jmp 0x40d676
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40d74b
mov edi, dword [ebp - 0x2c]
cmp esi, edi
jl 0x40d640
mov byte [ebp - 0xd], 1
push dword [ebp - 0x30]
call fcn.00436a37
add esp, 4
push ebx
call fcn.00436a37
mov al, byte [ebp - 0xd]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0xd], 0
jmp 0x40d722