Function at 0x410ed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3529
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x530400]
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 esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebx - 0x7e9]
cmp eax, 4
ja case.default.0x410f0f
jmp dword [eax*4 + 0x41113c]
push 0
push 0xf020
push 0x112
call dword [0x50b05c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x410f0f
push 1
push 0
call dword [0x50b0c8]
mov eax, dword [0x531e84]
test eax, eax
jne 0x410f8b
push 0x1e0
call fcn.004bbaae
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x410f7d
push 0x1e0
push 0
push edi
call fcn.004bda10
add esp, 0xc
mov ecx, edi
call fcn.0040e1c0
jmp 0x410f7f
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x531e84], eax
mov ecx, eax
call fcn.0040efb0
test eax, eax
je 0x410f9f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.default.0x410f0f
mov ecx, dword [esi + 0x4d4]
test ecx, ecx
je case.default.0x410f0f
mov eax, dword [ecx + 0x6bc]
add ecx, 0x6bc
push 0x50ae7e
push 0x7eb
call dword [eax]
jmp case.default.0x410f0f
mov ecx, dword [esi + 0x4d0]
test ecx, ecx
je case.default.0x410f0f
mov eax, dword [ecx + 0x6bc]
add ecx, 0x6bc
push 0x50ae7e
push 0x7ec
call dword [eax]
jmp case.default.0x410f0f
mov eax, dword [0x531e84]
test eax, eax
jne 0x41104f
push 0x1e0
call fcn.004bbaae
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x411041
push 0x1e0
push 0
push edi
call fcn.004bda10
add esp, 0xc
mov ecx, edi
call fcn.0040e1c0
jmp 0x411043
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x531e84], eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0040ef00
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 2
je 0x4110bf
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4110bf
cmp dword [esi + 0x4d8], 0
je 0x4110bf
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00401c90
add esp, 8
cmp dword [eax + 0x14], 7
mov byte [ebp - 4], 3
jbe 0x4110aa
mov eax, dword [eax]
mov ecx, dword [esi + 0x4d8]
push eax
call dword [0x50b06c]
lea ecx, [ebp - 0x44]
call fcn.00403110
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x4110f6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4110ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411135
push ecx
push edx
call fcn.004bbade
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push ebx
call dword [0x50b0dc]
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.004bbaec
mov esp, ebp
pop ebp
ret 0xc
call fcn.004bff0f
nop
push ss
cmovno eax, dword [eax]
xor al, 0xf
inc ecx
add byte [edi + ecx + 0xfd70041], ch
inc ecx
add byte [edx], al
adc byte [ecx], al
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4d0]
test ecx, ecx
je 0x411167
push 0x4e8748
call fcn.00410c10
mov ecx, dword [esi + 0x4d4]
test ecx, ecx
je 0x41117b
push 0x4e876c
call fcn.00410c10
push 0x4e7b90
lea ecx, [esi + 0x2c]
call dword [0x50b058]
mov dword [esi + 0x4d8], eax
pop esi
ret