Function at 0x40cf50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b2bc
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x60c9c8]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x238], eax
cmp eax, edi
je 0x40d4e8
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x244], edi
mov word [ebp - 0x218], cx
call fcn.00531fb0
mov eax, dword [esi + 0x264]
mov eax, dword [eax + 0x10]
add esp, 0xc
lea edx, [ebp - 0x244]
push edx
lea edx, [ebp - 0x230]
push edx
lea ecx, [esi + 0x264]
push str.ReadMeDIR
push 0x55ea30
mov dword [ebp - 0x22c], edi
call eax
cmp eax, edi
je 0x40d4e8
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x40d4e8
cmp dword [eax], edi
jle 0x40d4e8
mov eax, dword [eax + 0x310]
cmp word [eax], di
jne 0x40d043
mov eax, dword [esi + 0x250]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.00532f33
add esp, 0xc
xor ebx, ebx
jmp 0x40d076
push eax
lea ecx, [esi + 0x250]
call fcn.00405390
push eax
push 0x55d250
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.00533b0b
add esp, 0x14
xor ebx, ebx
jmp 0x40d076
mov esi, dword [ebp - 0x220]
call fcn.0043e2f8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40d178
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea ecx, [ebx + 0x5d738e]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x21c]
push 0x55d250
push eax
mov dword [ebp - 4], edi
call fcn.004047a0
movzx ecx, word [ebx + 0x5d7378]
push ecx
call fcn.00408600
add esp, 0x14
push eax
mov ecx, esi
call fcn.00409a70
test eax, eax
jne 0x40d0f9
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40d127
mov esi, dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edx, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
je 0x40d120
inc dword [ebp - 0x22c]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d133
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x7a
cmp ebx, 0x1034
jb 0x40d070
mov eax, dword [ebp - 0x22c]
cmp eax, edi
jne 0x40d182
mov ecx, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00409880
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x238]
mov dword [edx], edi
mov dword [eax], edi
mov eax, 1
jmp 0x40d4ea
push 0x80004005
call fcn.00402a80
imul eax, eax, 0xc54
push eax
call fcn.00532fd0
add esp, 4
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x21c], 0x5d737a
lea esi, [eax + 0x418]
mov dword [ebp - 0x240], edi
mov ebx, dword [ebp - 0x21c]
movzx ecx, word [ebx - 2]
add ebx, 0x14
push ecx
call fcn.00408600
mov ecx, dword [ebp - 0x220]
add esp, 4
push eax
call fcn.00409a70
test eax, eax
je 0x40d492
call fcn.0043e2f8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40d178
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x234], eax
push ebx
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x234]
push 0x55d250
push edx
mov dword [ebp - 4], 1
call fcn.004047a0
add esp, 0x10
call fcn.0043e2f8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40d178
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x254]
push ebx
push str.readme
push edx
lea eax, [ebp - 0x224]
push 0x55efb8
push eax
mov byte [ebp - 4], 2
call fcn.004047a0
add esp, 0x14
call fcn.0043e2f8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40d178
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
push ebx
push str.readme
lea ecx, [ebp - 0x228]
push 0x55d250
push ecx
mov byte [ebp - 4], 3
call fcn.004047a0
mov ebx, dword [ebp - 0x234]
add esp, 0x10
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d340
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d2ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d314
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d492
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x40d492
push ebx
lea eax, [esi - 0x208]
push 0x104
push eax
call fcn.00532f33
mov ecx, dword [ebp - 0x224]
push ecx
push 0x104
push esi
call fcn.00532f33
push str.readme.txt
lea edx, [esi + 0x208]
push 0x104
push edx
call fcn.00532f33
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 0x254]
push eax
lea ecx, [esi + 0x410]
push 0x104
push ecx
call fcn.00532f33
mov edx, dword [ebp - 0x228]
push edx
lea eax, [esi + 0x618]
push 0x104
push eax
call fcn.00532f33
xor ecx, ecx
mov word [esi - 0x414], cx
mov dword [esi - 0x418], edi
mov dword [esi + 0x820], edi
mov dword [esi + 0x824], edi
mov dword [esi + 0x828], edi
mov dword [esi + 0x82c], edi
mov dword [esi + 0x834], 0x20
mov dword [esi - 0x20c], edi
mov dword [esi + 0x830], edi
mov dword [esi + 0x838], edi
add esp, 0x3c
lea ecx, [ebp - 0x234]
add esi, 0xc54
call fcn.00402e90
lea ecx, [ebp - 0x224]
call fcn.00402e90
lea ecx, [ebp - 0x228]
call fcn.00402e90
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d443
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d469
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d492
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x240]
add dword [ebp - 0x21c], 0x7a
add eax, 0x7a
mov dword [ebp - 0x240], eax
cmp eax, 0x1034
jb 0x40d1ad
mov ecx, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00409880
mov edx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x22c]
mov dword [eax], edx
mov edx, dword [ebp - 0x238]
mov dword [edx], ecx
mov eax, 1
jmp 0x40d4ea
xor eax, eax
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.00531f97
mov esp, ebp
pop ebp
ret 8