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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433198
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x441008]
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 dword [ebp - 0x88], edx
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov ebx, dword [ebp + 0xc]
cdq
push edx
push eax
call fcn.00404c30
add esp, 8
mov ecx, esi
call fcn.00402cf0
cmp ebx, eax
je 0x414840
call fcn.00402cf0
mov edx, eax
mov dword [ebp - 0x74], eax
cmp dword [eax + 0x14], 8
jb 0x4146ab
mov edx, dword [eax]
mov dword [ebp - 0x74], edx
mov esi, dword [eax + 0x10]
mov ecx, ebx
mov dword [ebp - 0x80], esi
call fcn.00402cf0
mov edi, eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x6c], ecx
cmp esi, ecx
ja 0x4146f9
mov dword [ebp - 0x70], edi
cmp ecx, 8
jb 0x4146d1
mov eax, dword [edi]
mov dword [ebp - 0x70], eax
push esi
mov ecx, eax
mov dword [edi + 0x10], esi
call fcn.00402e52
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x74]
add esp, 4
mov dword [ebp - 0x74], 0
lea ecx, [eax + esi*2]
call fcn.00402e4b
jmp 0x414840
call fcn.00402e28
cmp esi, eax
ja 0x414a11
call fcn.00402e28
mov edx, eax
mov ecx, ebx
mov dword [ebp - 0x7c], edx
call fcn.00402cf0
mov ecx, esi
mov dword [ebp - 0x70], eax
or ecx, 7
mov dword [ebp - 0x78], ecx
cmp ecx, edx
ja 0x41475b
mov ecx, dword [eax + 0x14]
mov eax, edx
mov esi, dword [ebp - 0x70]
shr ecx, 1
sub eax, ecx
cmp dword [esi + 0x14], eax
mov esi, dword [ebp - 0x80]
ja 0x414758
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x14]
lea edx, [ebp - 0x84]
add eax, ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x84], eax
call fcn.00402dc3
mov edx, dword [eax]
mov dword [ebp - 0x7c], edx
lea eax, [edx + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x41476d
or ecx, 0xffffffff
jmp 0x414775
cmp ecx, 0x1000
jb 0x4147a3
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004226e9
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x41479d
mov edx, dword [ebp - 0x7c]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4147b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test ecx, ecx
je 0x4147b5
push ecx
call fcn.004226e9
mov edx, dword [ebp - 0x7c]
add esp, 4
jmp 0x4147b7
xor eax, eax
push dword [ebp - 0x80]
mov dword [ebp - 0x70], eax
mov dword [edi + 0x14], edx
mov edx, dword [ebp - 0x74]
mov dword [edi + 0x10], esi
mov esi, dword [ebp - 0x70]
mov ecx, esi
call fcn.00402dcd
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x74]
add esp, 4
mov dword [ebp - 0x74], 0
lea ecx, [esi + eax*2]
call fcn.00402e4b
mov ecx, dword [ebp - 0x6c]
cmp ecx, 8
jb 0x414824
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x414813
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41479d
mov eax, edx
push ecx
push eax
call fcn.00422996
mov eax, dword [ebp - 0x70]
add esp, 8
mov dword [edi], eax
jmp 0x414840
mov ecx, edi
call fcn.00402cf0
mov edx, eax
call fcn.00402af0
lea ecx, [ebp - 0x70]
mov edx, eax
call fcn.00402cf0
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, 0x437b48
call fcn.00402de3
mov ecx, ebx
mov edi, eax
call fcn.00402cf0
mov esi, eax
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
sub ecx, edx
cmp edi, ecx
ja 0x4148a5
cmp dword [esi + 0x14], 8
lea eax, [edx + edi]
mov dword [ebp - 0x6c], eax
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [ebp - 0x74], esi
jb 0x41487a
mov eax, dword [esi]
mov dword [ebp - 0x74], eax
lea ecx, [eax + edx*2]
mov edx, 0x437b48
push edi
call fcn.00402e52
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x78]
mov ecx, dword [ebp - 0x6c]
add esp, 4
mov dword [ebp - 0x78], 0
lea ecx, [eax + ecx*2]
call fcn.00402e4b
jmp 0x4148ba
push edi
push 0x437b48
mov byte [ebp - 0x6c], 0
mov ecx, ebx
push dword [ebp - 0x6c]
push edi
call fcn.004031e0
lea ecx, [ebp - 0x50]
call fcn.00402de3
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
sub ecx, edx
cmp eax, ecx
ja 0x414907
cmp dword [esi + 0x14], 8
lea ecx, [edx + eax]
mov dword [ebp - 0x6c], ecx
mov edi, esi
mov dword [esi + 0x10], ecx
jb 0x4148e1
mov edi, dword [esi]
lea ecx, [edi + edx*2]
push eax
lea edx, [ebp - 0x50]
call fcn.00402e52
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x78]
add esp, 4
mov dword [ebp - 0x78], 0
lea ecx, [edi + eax*2]
call fcn.00402e4b
jmp 0x41491b
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x6c], 0
push ecx
push dword [ebp - 0x6c]
mov ecx, ebx
push eax
call fcn.004031e0
mov ecx, 0x437b44
call fcn.00402de3
mov edx, dword [esi + 0x14]
mov ecx, edx
mov edi, dword [esi + 0x10]
sub ecx, edi
cmp eax, ecx
ja 0x41496b
lea ecx, [edi + eax]
mov dword [ebp - 0x6c], ecx
mov dword [esi + 0x10], ecx
cmp edx, 8
jb 0x414943
mov esi, dword [esi]
push eax
lea ecx, [esi + edi*2]
mov edx, 0x437b44
call fcn.00402e52
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x78]
add esp, 4
mov dword [ebp - 0x78], 0
lea ecx, [esi + eax*2]
call fcn.00402e4b
jmp 0x414980
push eax
push 0x437b44
mov byte [ebp - 0x6c], 0
mov ecx, ebx
push dword [ebp - 0x6c]
push eax
call fcn.004031e0
mov ecx, dword [ebp - 0x88]
call fcn.00402cf0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x414995
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.004030e0
mov ecx, ebx
call fcn.00402bad
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4149f2
lea ecx, [ebp - 0x68]
call fcn.00402c4b
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.00414a20
test al, al
je 0x4149e0
lea ecx, [ebp - 0x68]
call fcn.00402bad
push eax
call edi
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00402b04
cmp esi, 0xffffffff
sete al
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.004226d8
mov esp, ebp
pop ebp
ret
call fcn.00403000
int3