Function at 0x40aa40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54524c
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5ec938]
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 0x40afd8
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.0052c850
mov eax, dword [esi + 0x65c]
mov eax, dword [eax + 0x10]
add esp, 0xc
lea edx, [ebp - 0x244]
push edx
lea edx, [ebp - 0x230]
push edx
lea ecx, [esi + 0x65c]
push str.ReadMeDIR
push 0x557ff0
mov dword [ebp - 0x22c], edi
call eax
cmp eax, edi
je 0x40afd8
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x40afd8
cmp dword [eax], edi
jle 0x40afd8
mov eax, dword [eax + 0x290]
cmp word [eax], di
jne 0x40ab33
mov eax, dword [esi + 0x648]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052cd4a
add esp, 0xc
xor ebx, ebx
jmp 0x40ab66
push eax
lea ecx, [esi + 0x648]
call fcn.004047e0
push eax
push str._s_s
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.0052d99b
add esp, 0x14
xor ebx, ebx
jmp 0x40ab66
mov esi, dword [ebp - 0x220]
call fcn.00436219
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40ac68
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 + 0x5bdfe6]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x21c]
push str._s_s
push eax
mov dword [ebp - 4], edi
call fcn.00403bf0
movzx ecx, word [ebx + 0x5bdfd0]
push ecx
call fcn.00406d00
add esp, 0x14
push eax
mov ecx, esi
call fcn.00407de0
test eax, eax
jne 0x40abe9
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 0x40ac17
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 0x40ac10
inc dword [ebp - 0x22c]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x7a
cmp ebx, 0xf40
jb 0x40ab60
mov eax, dword [ebp - 0x22c]
cmp eax, edi
jne 0x40ac72
mov ecx, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00407bf0
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x238]
mov dword [edx], edi
mov dword [eax], edi
mov eax, 1
jmp 0x40afda
push 0x80004005
call fcn.00401ed0
imul eax, eax, 0xc54
push eax
call fcn.0052cde7
add esp, 4
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x21c], 0x5bdfd2
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.00406d00
mov ecx, dword [ebp - 0x220]
add esp, 4
push eax
call fcn.00407de0
test eax, eax
je 0x40af82
call fcn.00436219
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40ac68
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 str._s_s
push edx
mov dword [ebp - 4], 1
call fcn.00403bf0
add esp, 0x10
call fcn.00436219
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40ac68
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 + 0x64c]
push ebx
push str.readme
push edx
lea eax, [ebp - 0x224]
push 0x5583f0
push eax
mov byte [ebp - 4], 2
call fcn.00403bf0
add esp, 0x14
call fcn.00436219
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40ac68
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 str._s_s
push ecx
mov byte [ebp - 4], 3
call fcn.00403bf0
mov ebx, dword [ebp - 0x234]
add esp, 0x10
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ae30
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 0x40adde
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 0x40ae04
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 0x40af82
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x40af82
push ebx
lea eax, [esi - 0x208]
push 0x104
push eax
call fcn.0052cd4a
mov ecx, dword [ebp - 0x224]
push ecx
push 0x104
push esi
call fcn.0052cd4a
push str.readme.txt
lea edx, [esi + 0x208]
push 0x104
push edx
call fcn.0052cd4a
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 0x64c]
push eax
lea ecx, [esi + 0x410]
push 0x104
push ecx
call fcn.0052cd4a
mov edx, dword [ebp - 0x228]
push edx
lea eax, [esi + 0x618]
push 0x104
push eax
call fcn.0052cd4a
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.004022d0
lea ecx, [ebp - 0x224]
call fcn.004022d0
lea ecx, [ebp - 0x228]
call fcn.004022d0
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 0x40af33
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 0x40af59
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 0x40af82
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, 0xf40
jb 0x40ac9d
mov ecx, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00407bf0
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 0x40afda
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.0052c2ec
mov esp, ebp
pop ebp
ret 8