Function at 0x5257f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dd81
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5deba8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov byte [eax + 0x159a], 1
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 0x1878], 1
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jne 0x52583f
xor eax, eax
jmp 0x525fa6
push 0
push 0
push 0x811
mov eax, dword [0x5e24ac]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x1870], 0
je 0x5258a6
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x1870]
cmp eax, dword [ebp - 0x28]
je 0x5258a6
push 0
push 1
push 0x2404
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x1870]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x7fc
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x1870]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 0x159a], 1
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x1870], eax
mov ecx, dword [ebp - 0x28]
call fcn.00428cc0
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0
lea ecx, [ebp - 0x24]
call fcn.004a6d40
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0x1e3
call fcn.004b0190
lea ecx, [ebp - 0x24]
call fcn.004b0560
push 0
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x24]
call fcn.004b0610
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
call fcn.004b0240
push eax
lea ecx, [ebp - 0x10]
call fcn.004a6d40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.004b0220
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
cmp eax, 1
je 0x525976
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [eax + 0x2c]
call edx
cmp eax, 4
je 0x525976
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ecx + 0x2c]
call eax
cmp eax, 5
jne 0x525c7d
push 0
lea ecx, [ebp - 0x30]
call fcn.004a6d40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004a6da0
push 0x5a12fc
push 0x440
push 0x400
push 0
lea ecx, [ebp - 0x30]
call fcn.004b0650
push 0x5a1468
push 0x43f
push 0x400
push 0
lea ecx, [ebp - 0x30]
call fcn.004b0650
push 0x5a136c
push 0x3ee
push 0xc00
push 0
lea ecx, [ebp - 0x30]
call fcn.004b0650
push 0x5a1480
push 0x441
push 0x400
push 0
lea ecx, [ebp - 0x30]
call fcn.004b0650
push 0x5a1490
push 0x442
push 0x400
push 0
lea ecx, [ebp - 0x30]
call fcn.004b0650
push 0x5a14a0
push 0x444
push 0x400
push 0
lea ecx, [ebp - 0x30]
call fcn.004b0650
push 0x5a14b8
push 0x446
push 0x400
push 0
lea ecx, [ebp - 0x30]
call fcn.004b0650
push 0x5a14d4
push 0x43e
push 0x400
push 0
lea ecx, [ebp - 0x30]
call fcn.004b0650
push 0x5a14f0
push 0x447
push 0x400
push 0
lea ecx, [ebp - 0x30]
call fcn.004b0650
mov ecx, dword [ebp - 0x28]
call fcn.00428d00
push eax
lea ecx, [ebp - 0x34]
call fcn.0041d9b0
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
lea edx, [ebp - 0x34]
push edx
call fcn.0041d990
mov dword [ebp - 0x54], eax
call fcn.00417e80
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 3
jne 0x525ac5
push 0
push 0x43e
lea ecx, [ebp - 0x30]
call fcn.004b0680
push 0
push 0x446
lea ecx, [ebp - 0x30]
call fcn.004b0680
jmp 0x525b05
lea ecx, [ebp - 0x34]
call fcn.0041e1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x525b05
push 0
push 0x43e
lea ecx, [ebp - 0x30]
call fcn.004b0680
push 0
push 0x446
lea ecx, [ebp - 0x30]
call fcn.004b0680
push 0
push 0x440
lea ecx, [ebp - 0x30]
call fcn.004b0680
cmp dword [ebp - 0x1c], 0
je 0x525b53
cmp dword [ebp - 0x1c], 0x11
je 0x525b51
push 0
push 0x441
lea ecx, [ebp - 0x30]
call fcn.004b0680
push 0
push 0x442
lea ecx, [ebp - 0x30]
call fcn.004b0680
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ecx + 0x2c]
call eax
cmp eax, 5
jne 0x525b51
push 0
push 0x444
lea ecx, [ebp - 0x30]
call fcn.004b0680
jmp 0x525b71
push 0
push 0x441
lea ecx, [ebp - 0x30]
call fcn.004b0680
push 0
push 0x442
lea ecx, [ebp - 0x30]
call fcn.004b0680
push 0x5a1500
mov ecx, dword [ebp - 0x30]
push ecx
push 0x410
push 0
lea ecx, [ebp - 0x10]
call fcn.004b0650
lea ecx, [ebp - 0x30]
call fcn.004b0530
push 0x5a1510
push 0x445
push 0x400
push 0
lea ecx, [ebp - 0x10]
call fcn.004b0650
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [eax + 0x2c]
call edx
cmp eax, 4
jne 0x525c60
push 0x5a1524
push 0x443
push 0x400
push 0
lea ecx, [ebp - 0x10]
call fcn.004b0650
call fcn.0042eb50
movzx eax, al
test eax, eax
jne 0x525c07
mov ecx, dword [ebp - 0x48]
call fcn.005194e0
movzx ecx, al
test ecx, ecx
je 0x525c07
push 0x13d
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x525c17
push 0x13c
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0x443
lea ecx, [ebp - 0x10]
call fcn.004a6e60
cmp dword [ebp - 0x1c], 0xa
je 0x525c45
push 0
push 0x443
lea ecx, [ebp - 0x10]
call fcn.004b0680
jmp 0x525c60
call fcn.0045f310
movzx ecx, al
test ecx, ecx
je 0x525c60
push 1
push 0x443
lea ecx, [ebp - 0x10]
call fcn.004b05e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.0041dab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.004a6d60
jmp 0x525d7f
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [eax + 0x2c]
call edx
cmp eax, 2
jne 0x525cff
push 0x5a1538
push 0x44f
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.004b0650
call fcn.0042eb50
movzx eax, al
test eax, eax
jne 0x525cd3
mov ecx, dword [ebp - 0x48]
call fcn.005194e0
movzx ecx, al
test ecx, ecx
je 0x525cd3
push 0x1ba
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x525ce3
push 0x1bc
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0x44f
lea ecx, [ebp - 0x10]
call fcn.004a6e60
jmp 0x525d7f
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
cmp eax, 3
jne 0x525d7f
push 0x5a154c
push 0x445
push 0x400
push 0
lea ecx, [ebp - 0x10]
call fcn.004b0650
call fcn.0042eb50
movzx edx, al
test edx, edx
jne 0x525d58
mov ecx, dword [ebp - 0x48]
call fcn.005194e0
movzx eax, al
test eax, eax
je 0x525d58
push 0x1ba
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x525d68
push 0x1bc
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
push 0x445
lea ecx, [ebp - 0x10]
call fcn.004a6e60
call fcn.00416be0
cmp eax, 0x13
jl 0x525daa
mov ecx, dword [ebp - 0x48]
call fcn.005194e0
movzx eax, al
test eax, eax
je 0x525daa
push 0x139
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x525dba
push 0x10f
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
push 0x429
lea ecx, [ebp - 0x10]
call fcn.004a6e60
call fcn.0042eb50
movzx eax, al
test eax, eax
jne 0x525dfe
mov ecx, dword [ebp - 0x48]
call fcn.005194e0
movzx ecx, al
test ecx, ecx
je 0x525dfe
push 0x1bb
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x525e0e
push 0x1be
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0x801b
lea ecx, [ebp - 0x10]
call fcn.004a6e60
call fcn.0042eb50
movzx ecx, al
test ecx, ecx
jne 0x525e52
mov ecx, dword [ebp - 0x48]
call fcn.005194e0
movzx edx, al
test edx, edx
je 0x525e52
push 0x1ba
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x525e62
push 0x1bc
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push 0x445
lea ecx, [ebp - 0x10]
call fcn.004a6e60
call fcn.0042eb50
movzx edx, al
test edx, edx
jne 0x525ea6
mov ecx, dword [ebp - 0x48]
call fcn.005194e0
movzx eax, al
test eax, eax
je 0x525ea6
push 0x245
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x525eb6
push 0x246
call fcn.0045b430
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
push 0x446
lea ecx, [ebp - 0x10]
call fcn.004a6e60
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.0051bec0
push 0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004b0590
mov dword [ebp - 0x20], eax
push 0
mov edx, dword [ebp - 0x20]
push edx
push 0x111
mov ecx, dword [ebp - 0x48]
add ecx, 4
call fcn.00416350
push 0
push 0
push 0x808
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 1
push 0x811
mov edx, dword [0x5e24ac]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
cmp dword [ebp - 0x20], 0x43e
setge al
xor ecx, ecx
cmp dword [ebp - 0x20], 0x447
setle cl
and eax, ecx
jne 0x525f77
cmp dword [ebp - 0x20], 0x44d
jl 0x525f6a
cmp dword [ebp - 0x20], 0x450
jle 0x525f77
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x1870], 0
mov eax, dword [ebp - 0x48]
mov byte [eax + 0x1878], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004a6d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004a6d60
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10