Function at 0x414120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c8d26
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4fcb54]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x174]
mov esi, ecx
lea edi, [ebp + 0x22]
mov ecx, edi
call fcn.004143b0
test eax, eax
jne 0x41417c
mov byte [edi], 0
xor eax, eax
jmp 0x41437c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414172
mov eax, esi
mov edx, 0x104
mov ecx, edi
call fcn.00411140
push esi
lea ecx, [esp + 0x18]
call fcn.00402520
xor ebx, ebx
mov dword [esp + 0x16c], ebx
call fcn.00484590
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4141c3
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
mov edi, esi
mov byte [esp + 0x170], 1
call fcn.00414560
add esp, 4
push 0x4e2d74
lea eax, [esp + 0x1c]
call fcn.0040d3b0
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
jne 0x414211
push 0x80004005
call fcn.004021e0
mov esi, dword [esp + 0x18]
push ecx
push esi
call fcn.004a30dd
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x414236
push 0x4e3484
lea ecx, [esp + 0x18]
call fcn.00410550
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4142a0
lea eax, [esi - 0x10]
mov byte [esp + 0x16c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41426e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x16c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414299
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41437c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov cl, byte [esp + 0x1c]
mov edx, dword [esp + 0x38]
and cl, 0x7f
mov byte [ebp + 0x20], cl
mov eax, edx
mov edx, ebx
mov cl, 0x20
call fcn.004c4fb0
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x3c]
or dword [ebp + 0x18], eax
lea ecx, [esp + 0x20]
mov dword [ebp + 0x1c], edx
or dword [ebp + 0x1c], ebx
push ecx
mov edi, ebp
call fcn.00413f30
lea edx, [esp + 0x2c]
add esp, 4
lea esi, [ebp + 0x10]
push edx
mov edi, esi
call fcn.00413f30
lea eax, [esp + 0x34]
add esp, 4
lea edi, [ebp + 8]
push eax
call fcn.00413f30
mov eax, dword [ebp]
add esp, 4
or eax, dword [ebp + 4]
jne 0x414314
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x414325
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esp + 0x16c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41434c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x16c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414377
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004a3135
add esp, 0x15c
ret