Function at 0x451030
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dfb60
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xe8]
mov ebx, dword [esi + 0xf8]
test eax, eax
js 0x45111f
cmp eax, ebx
jge 0x45111f
imul eax, eax, 0x52
lea edi, [eax + esi + 0xfc]
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
call edx
test eax, eax
je 0x4510c7
movzx ecx, byte [edi + 2]
movzx edx, word [edi]
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.00434870
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x23dcc]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], edi
call fcn.004340b0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.00430810
cmp byte [esi + 0x23e04], 0
je 0x45111f
mov eax, dword [esi + 0xd8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0041d5f0
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [esi + 0x23de8]
mov dword [ebp - 4], 1
call fcn.0045aff0
mov eax, dword [ebp - 0x10]
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 0x45111f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
test eax, eax
js 0x45128b
cmp eax, ebx
jge 0x45128b
mov dword [esi + 0xe8], eax
imul eax, eax, 0x52
lea edi, [eax + esi + 0xfc]
push edi
call fcn.0041ab70
movzx edx, byte [edi + 2]
movzx eax, word [edi]
add esp, 4
push edx
push eax
lea ecx, [ebp - 0x30]
call fcn.00434870
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], edi
mov dword [esi + 0xec], 0
call fcn.0043d290
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4511a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x451216
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0043d290
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x7c]
mov ecx, esi
mov byte [ebp - 4], 3
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4511e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xe8]
mov eax, dword [esi + ecx*4 + 0x235ac]
test eax, eax
js 0x45120a
cmp eax, dword [esi + 0x23dd8]
jge 0x45120a
mov dword [esi + 0xe4], eax
jmp 0x45121f
mov dword [esi + 0xe4], 0xffffffff
jmp 0x45121f
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
push edi
call fcn.0041a900
add esp, 4
test al, al
jne 0x451231
mov byte [0x66fca4], al
push 1
push esi
call fcn.00443a30
mov ecx, eax
call fcn.004c7b74
push 1
call fcn.00443a30
mov ecx, eax
call fcn.00446180
call fcn.00443a30
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x40f
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00430810
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4