Function at 0x404da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b59d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
xor eax, eax
mov dword [ebp - 0x34], 0
push esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.00436370
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
cmp edx, 8
jb 0x404dfa
test ecx, ecx
je 0x40504d
cmp edx, 8
lea eax, [ebp - 0x34]
cmovae eax, ecx
cmp word [eax], bx
je 0x40504d
cmp edx, 8
lea eax, [ebp - 0x34]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405047
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0043c6d0
add esp, 8
mov eax, dword [ebp + 8]
shr eax, 0x10
mov byte [ebp - 4], 1
test al, 1
je 0x405032
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.00407c00
mov ecx, eax
call fcn.00417870
mov edi, dword [ebp - 0x18]
mov eax, 0x38e38e39
mov esi, dword [ebp - 0x1c]
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x404ed7
xor edi, edi
mov dword [ebp + 8], ecx
nop
lea ecx, [edi + 0x18]
add ecx, esi
cmp dword [ecx + 0x14], 0x10
jb 0x404ead
mov ecx, dword [ecx]
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push ecx
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x404ec5
inc ebx
mov esi, dword [ebp - 0x1c]
add edi, 0x48
sub dword [ebp + 8], 1
jne 0x404ea0
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404ee0
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x404ee9
mov dword [eax], ebx
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x404ef9
xor eax, eax
cmp ebx, ecx
sete al
mov dword [edx], eax
test esi, esi
je 0x405031
cmp esi, edi
je 0x404ff1
add esi, 0x44
nop dword [eax]
mov ecx, dword [esi]
cmp ecx, 0x10
jb 0x404f43
mov eax, dword [esi - 0x14]
inc ecx
cmp ecx, 0x1000
jb 0x404f39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405093
mov eax, edx
push ecx
push eax
call fcn.0041dbcb
add esp, 8
mov dword [esi - 4], 0
mov dword [esi], 0xf
mov byte [esi - 0x14], 0
mov ecx, dword [esi - 0x18]
cmp ecx, 0x10
jb 0x404f88
mov eax, dword [esi - 0x2c]
inc ecx
cmp ecx, 0x1000
jb 0x404f7e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405093
mov eax, edx
push ecx
push eax
call fcn.0041dbcb
add esp, 8
mov dword [esi - 0x1c], 0
mov dword [esi - 0x18], 0xf
mov byte [esi - 0x2c], 0
mov ecx, dword [esi - 0x30]
cmp ecx, 0x10
jb 0x404fce
mov eax, dword [esi - 0x44]
inc ecx
cmp ecx, 0x1000
jb 0x404fc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405093
mov eax, edx
push ecx
push eax
call fcn.0041dbcb
add esp, 8
mov dword [esi - 0x34], 0
mov dword [esi - 0x30], 0xf
mov byte [esi - 0x44], 0
add esi, 0x48
lea ecx, [esi - 0x44]
cmp ecx, edi
jne 0x404f10
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov eax, 0x38e38e39
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*8]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x405027
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405093
push ecx
push esi
call fcn.0041dbcb
add esp, 8
pop edi
lea ecx, [ebp - 0x4c]
call fcn.00404210
mov edx, dword [ebp - 0x20]
mov esi, 1
mov ecx, dword [ebp - 0x34]
jmp 0x40504f
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
xor esi, esi
cmp edx, 8
jb 0x40507f
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405075
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405098
push edx
push ecx
call fcn.0041dbcb
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00455d9f
call fcn.00455d9f
int3