Function at 0x5121f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582a07
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5fc150]
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 edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
cmp eax, 0x41b
jne 0x512247
push 0
push 0xac35
push 0x111
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x512576
mov ecx, dword [edi + 0x74]
cmp dword [esi], ecx
jne 0x512576
mov dword [ebp - 0x25c], 5
lea edx, [ebp - 0x218]
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x248], 0x104
cmp eax, 0xfffffe62
ja 0x512532
je 0x512438
cmp eax, 0xfffffe34
je 0x512352
cmp eax, 0xfffffe38
je 0x512344
cmp eax, 0xfffffe39
jne 0x512576
mov eax, dword [esi + 0x3c]
mov ecx, edi
push eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x25c], 0x22
call fcn.00511750
cmp eax, 2
jne 0x5122fb
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x5122e0
push 3
push 3
push dword [esi + 0x3c]
lea ecx, [edi + 0x68]
call fcn.004f8980
jmp 0x512576
cmp eax, 2
jne 0x512576
push eax
push eax
push dword [esi + 0x3c]
lea ecx, [edi + 0x68]
call fcn.004f8980
jmp 0x512576
push dword [esi + 0x3c]
mov ecx, edi
call fcn.00511750
test eax, eax
jne 0x512576
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x512327
push eax
push eax
push dword [esi + 0x3c]
lea ecx, [edi + 0x68]
call fcn.004f8980
jmp 0x512576
cmp eax, 2
jne 0x512576
push 0
push 0
push dword [esi + 0x3c]
lea ecx, [edi + 0x68]
call fcn.004f8980
jmp 0x512576
push esi
lea ecx, [edi + 0x68]
call fcn.004f7720
jmp 0x512576
cmp dword [esi + 0x1c], 0
je 0x512576
push dword [esi + 0x10]
mov ecx, edi
call fcn.00511750
test eax, eax
je 0x512576
cmp dword [esi + 0x30], 0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
je 0x512423
lea ecx, [edi + 0x68]
call fcn.004cf4b0
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x25c]
push eax
push 0
push 0x113e
push dword [edi + 0x74]
call ebx
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [esi + 0x30]
mov ecx, ebx
push 0xffffffffffffffff
push dword [ebp - 0x24c]
mov dword [ebp - 0x234], eax
call fcn.00410ff0
cmp eax, 0xffffffff
je 0x5123d9
push dword [esi + 0x1c]
mov ecx, ebx
push dword [ebp - 0x234]
push eax
call fcn.004c4190
mov dword [ebp - 0x25c], 0x22
cmp dword [ebx + 0x14], 8
jb 0x5123eb
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51240a
mov dword [ebp - 0x244], 4
mov dword [ebp - 0x240], 4
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x25c]
push eax
push 0
push 0x113f
push dword [edi + 0x74]
call ebx
lea eax, [esi + 0xc]
push eax
push 0
push 0x113f
push dword [edi + 0x74]
call ebx
jmp 0x512576
mov eax, dword fs:[0x2c]
mov ecx, dword [0x611b70]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x6117c0]
cmp eax, dword [ecx + 4]
jle 0x5124ab
push 0x6117c0
call fcn.0052c12f
add esp, 4
cmp dword [0x6117c0], 0xffffffff
jne 0x5124ab
mov dword [ebp - 4], 0
xor eax, eax
push 0x5857c0
mov dword [0x6117bc], 7
mov dword [0x6117b8], 0
mov word [0x6117a8], ax
call fcn.0052bfe6
mov dword [ebp - 4], 0xffffffff
push 0x6117c0
call fcn.0052c0f0
add esp, 8
push dword [esi + 0x14]
mov ecx, edi
call fcn.00511750
test eax, eax
jne 0x5124d4
mov eax, dword [esi + 0x18]
cmp eax, 0x6117a8
je 0x512512
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x6117a8
call fcn.00406ac0
jmp 0x512512
cmp eax, 3
jne 0x512576
push dword [esi + 0x14]
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.00511430
mov dword [ebp - 4], 1
mov ecx, 0x6117a8
push eax
call fcn.00403e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004038c0
cmp dword [0x6117bc], 8
mov eax, dword [0x6117a8]
jae 0x512525
mov eax, 0x6117a8
mov dword [esi + 0xc], eax
mov eax, dword [0x6117b8]
mov dword [esi + 0x10], eax
jmp 0x512576
cmp eax, 0xfffffe64
je 0x512547
cmp eax, 0xfffffffd
jne 0x512576
mov ecx, edi
call fcn.005125a0
jmp 0x512576
cmp word [esi + 0xc], 0xd
jne 0x512576
push 0
push 9
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov ecx, edi
push esi
call fcn.00511750
cmp eax, 3
je 0x51253e
push esi
lea ecx, [edi + 0x68]
call fcn.004d2290
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.0052c233
mov esp, ebp
pop ebp
ret 4