Function at 0x40dc60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cb8d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d0000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov edx, ecx
mov ecx, esp
call fcn.0040e880
lea ecx, [ebp - 0x10]
call fcn.0040d3f0
push 1
push 0xa
mov dword [ebp - 4], 0
call fcn.0055648e
lea esi, [eax + 8]
mov dword [ebp - 0x18], esi
push 1
push 0xa
call fcn.0055648e
add esp, 0x14
lea edi, [eax + 8]
mov dword [ebp - 0x24], edi
push 4
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0
call fcn.00409740
mov eax, dword [eax]
mov ecx, 0x5b2e00
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40dd08
test dx, dx
je 0x40dd04
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40dd08
add eax, 4
add ecx, 4
test dx, dx
jne 0x40dce2
xor ebx, ebx
jmp 0x40dd0d
sbb ebx, ebx
or ebx, 1
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dd2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ecx, ecx
mov eax, 4
test ebx, ebx
mov ebx, dword [ebp - 0x10]
cmovne eax, ecx
xor edx, edx
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x20], eax
test ecx, ecx
js 0x40dd85
cmp ecx, dword [ebx - 0xc]
jg 0x40dd85
lea eax, [ebx + ecx*2]
push 0x5afbe8
push eax
call fcn.0054f460
mov ebx, dword [ebp - 0x10]
add esp, 8
test eax, eax
jne 0x40dd6d
or eax, 0xffffffff
jmp 0x40dd71
sub eax, ebx
sar eax, 1
mov edx, dword [ebp - 0x14]
lea ecx, [eax + 1]
inc edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
jne 0x40dd42
mov eax, dword [ebp - 0x20]
jmp 0x40dd89
inc edx
mov dword [ebp - 0x14], edx
test eax, eax
js 0x40de9b
mov eax, dword [ebp - 0x1c]
test eax, eax
js 0x40de32
cmp eax, dword [ebx - 0xc]
jg 0x40de32
lea eax, [ebx + eax*2]
push 0x5afbe8
push eax
call fcn.0054f460
mov ebx, dword [ebp - 0x10]
add esp, 8
test eax, eax
jne 0x40ddc2
or eax, 0xffffffff
jmp 0x40ddc6
sub eax, ebx
sar eax, 1
lea ecx, [eax + 1]
mov dword [ebp - 0x1c], ecx
cmp eax, 0xffffffff
je 0x40de37
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409740
mov ebx, dword [eax]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dde5
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040e500
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 8]
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
call fcn.0054f9f0
mov edx, dword [ebp - 0x20]
add esp, 0xc
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40de70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40de70
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40de40
sub eax, edx
lea ecx, [ebp - 0x18]
sar eax, 1
push eax
call fcn.0040e500
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 8]
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
call fcn.0054f9f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40de89
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40def5
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
dec edx
mov dword [ebp - 0x14], edx
test edx, edx
jg 0x40dd91
mov dword [ebp - 0x1c], 1
test edi, edi
je 0x40deb5
add edi, 0xfffffff8
push edi
call fcn.00552bd3
mov ebx, dword [ebp - 0x10]
add esp, 4
test esi, esi
je 0x40dec8
add esi, 0xfffffff8
push esi
call fcn.00552bd3
mov ebx, dword [ebp - 0x10]
add esp, 4
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x40dee0
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
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 ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
jmp 0x40dea2