Function at 0x10052a50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101266e6
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x10167c60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x10052a9a
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x10052a9a
mov ecx, dword [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x10053272
lea eax, [ebp - 0x30]
push eax
call fcn.100175e0
push str.3.1121.1490.1031
push dword [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.10029230
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x14]
setg byte [ebp - 0xd]
push eax
call fcn.1002fe60
mov ecx, eax
call fcn.10021c40
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp dword [eax - 4], 1
jle 0x10052aeb
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.10008660
mov eax, dword [ebp - 0x14]
push eax
push str.perm_time:__s
call fcn.10061520
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.100efbd7
mov edx, eax
add esp, 0x10
test edx, edx
js 0x10053284
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x10053284
mov dword [ecx - 0xc], edx
or edi, 0xffffffff
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ecx
jne 0x10052b3b
cmp byte [ebp - 0xd], cl
jne 0x10053235
call fcn.1004ce10
mov ecx, eax
call fcn.10035360
cmp eax, 1
je 0x10052b88
push 0
lea ecx, [ebp - 0xd]
call fcn.10047a00
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10052b77
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0xd]
call fcn.10047db0
push eax
call fcn.10061520
add esp, 4
push 0
mov dword [ebp - 0x18], 0
call fcn.1002fe60
mov ecx, eax
call fcn.100225a0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0xf8]
call fcn.100649e0
test eax, eax
jne 0x10052d77
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x1005328e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push str.fullscreen_0x_08X
push eax
call fcn.100086f0
add esp, 0xc
lea ecx, [ebp - 0xd]
call fcn.10047060
mov esi, dword [ebp - 0x20]
push 0
push eax
push 1
push 0
push esi
call fcn.10014870
mov ecx, eax
call fcn.1009cb70
push esi
call fcn.10061520
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 0x100
jne 0x10052c65
call fcn.1002fe60
mov ecx, eax
call fcn.100207f0
test eax, eax
je 0x10052c62
push str.allow_adlevel3
call fcn.10061520
add esp, 4
push 1
call fcn.1002fe60
mov ecx, eax
call fcn.100225a0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10052dd1
mov ecx, dword [esi]
push esi
jmp 0x10052dcc
mov eax, dword [ebp - 0x18]
cmp eax, 0x200
je 0x10052c43
lea ecx, [ebp - 0x28]
call fcn.100131c0
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push str.ex1_d
push eax
call fcn.100086f0
add esp, 0xc
lea ecx, [ebp - 0x2c]
push str.game
call fcn.100079a0
mov edi, dword [ebp - 0x28]
push 0
push 0
push 1
push edi
push dword [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10014870
mov ecx, eax
call fcn.1009cb70
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10052cd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
lea ecx, [ebp - 0xd]
call fcn.1004b930
push eax
call fcn.10061520
mov eax, dword [ebp - 0x18]
add esp, 8
add eax, 0xffffff00
cmp eax, 0xff00
ja 0x10052d31
push str.dissatisfy_create_condition
lea ecx, [ebp - 0x2c]
call fcn.100079a0
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 5
call fcn.100492a0
push 0
push eax
push 1
push 0
push dword [ebp - 0x2c]
call fcn.10014870
mov ecx, eax
call fcn.1009cb70
lea ecx, [ebp - 0x2c]
call fcn.10007df0
jmp 0x10052d3a
push 0
mov ecx, ebx
call fcn.10054ac0
lea edx, [edi - 0x10]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10052d58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10053235
mov ecx, dword [esi]
push esi
jmp 0x10053230
push str.PopupEnabled
call fcn.10061520
add esp, 4
lea ecx, [ebp - 0x2c]
push str.fullscreen_0x0000000
call fcn.100079a0
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 6
call fcn.1004b050
push 0
push eax
push 1
push 0
push dword [ebp - 0x2c]
call fcn.10014870
mov ecx, eax
call fcn.1009cb70
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10052dd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x48], 0
je 0x10053235
push str.can_show_countdown_wnd
call fcn.10061520
mov eax, dword [ebx + 0x54]
add esp, 4
test eax, eax
jne 0x10052e23
push 0x10174590
push 0x2c
call fcn.100c490f
add esp, 8
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x10052e12
mov ecx, eax
call fcn.1003eaf0
jmp 0x10052e14
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebx + 0x54], eax
test eax, eax
je 0x10053235
call fcn.1004ee80
mov ecx, dword [ebx + 0x54]
push eax
push dword [ebx + 8]
call fcn.100401d0
lea eax, [ebp - 0x2c]
push eax
call fcn.1002fe60
mov ecx, eax
call fcn.10021a20
push dword [eax]
mov ecx, dword [ebx + 0x54]
mov byte [ebp - 4], 8
call fcn.10040140
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10052e70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.1002fe60
mov ecx, eax
call fcn.10021b20
push dword [eax]
mov ecx, dword [ebx + 0x54]
mov byte [ebp - 4], 9
call fcn.10040180
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10052eac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1002fe60
mov ecx, eax
call fcn.10021c20
mov ecx, dword [ebx + 0x54]
push eax
call fcn.1000c680
mov ecx, dword [ebx + 0x54]
call fcn.1003ef10
lea eax, [ebp - 0x24]
push eax
call fcn.10041800
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
push eax
call fcn.100415f0
add esp, 8
push dword [ebp - 0x24]
mov esi, 1
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x20], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052f45
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052f45
lea ecx, [ebp - 0x48]
call fcn.10090660
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.10090ea0
lea ecx, [ebp - 0x48]
call fcn.10090c60
xor ecx, ecx
mov byte [ebp - 4], 0xb
test al, al
cmove esi, ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x20], esi
call fcn.100906e0
test esi, esi
jne 0x10053132
mov ecx, dword [ebx + 0x54]
call fcn.1003eee0
cmp eax, 1
jne 0x10053132
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x10052f87
call fcn.100408a0
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10052f80
mov ecx, eax
call fcn.10040390
push 0x38
push dword [ebp - 0x2c]
call fcn.100c459e
add esp, 8
mov dword [ebx + 0x68], 0
push 0x10174590
push 0x38
call fcn.100c490f
add esp, 8
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x10052faa
mov ecx, eax
call fcn.10040290
jmp 0x10052fac
xor eax, eax
mov byte [ebp - 4], 0xb
mov dword [ebx + 0x68], eax
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x10053132
lea eax, [ebp - 0x28]
push eax
call fcn.1002fe60
mov ecx, eax
call fcn.10021a20
push dword [eax]
mov ecx, dword [ebx + 0x68]
mov byte [ebp - 4], 0xe
call fcn.1000b8b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.10007df0
call fcn.1002fe60
mov ecx, eax
call fcn.10021c20
mov ecx, dword [ebx + 0x68]
push eax
call fcn.100407f0
mov ecx, dword [ebx + 0x68]
push 0
call fcn.10040820
call fcn.1004ef00
mov ecx, dword [ebx + 0x68]
push eax
push dword [ebx + 8]
call fcn.10040800
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10053092
mov ecx, dword [ebx + 0x54]
lea eax, [ebp - 0x28]
push eax
call fcn.1003eef0
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
call fcn.10007df0
test esi, esi
je 0x1005308f
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], 1
push eax
call fcn.10041800
add esp, 4
mov esi, eax
mov ecx, dword [ebx + 0x54]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xf
call fcn.1003eef0
push dword [esi]
mov ecx, dword [ebx + 0x68]
push dword [eax]
mov byte [ebp - 4], 0x10
call fcn.10040440
lea ecx, [ebp - 0x28]
call fcn.10007df0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.10007df0
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100530a3
test esi, esi
jne 0x10053104
mov ecx, dword [ebx + 0x54]
lea eax, [ebp - 0x34]
push eax
call fcn.1003ee80
lea ecx, [ebp - 0x34]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
call fcn.10007df0
test esi, esi
je 0x10053104
lea eax, [ebp - 0x2c]
push eax
call fcn.100415f0
add esp, 4
mov esi, eax
mov ecx, dword [ebx + 0x54]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0x11
call fcn.1003ee80
push dword [esi]
mov ecx, dword [ebx + 0x68]
push dword [eax]
mov byte [ebp - 4], 0x12
call fcn.10040440
lea ecx, [ebp - 0x34]
call fcn.10007df0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.10007df0
jmp 0x1005310a
cmp dword [ebp - 0x2c], 0
je 0x10053132
mov ecx, dword [ebx + 0x68]
push 1
call fcn.10040830
mov ecx, dword [ebx + 0x68]
call fcn.10040850
lea ecx, [ebp - 0xd]
call fcn.10048a50
push eax
call fcn.10061520
add esp, 4
jmp 0x100531f9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10053167
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10053152
mov eax, dword [ebx + 0x4c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x10053160
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [ebx + 0x4c], 0
push str.idle_time_ok
lea ecx, [ebp - 0x2c]
call fcn.100079a0
push 0
push 0
push 1
push 0
push dword [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.10014870
mov ecx, eax
call fcn.1009cb70
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100531ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10174590
push 0x84
call fcn.100c490f
add esp, 8
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x14
test eax, eax
je 0x100531d3
mov ecx, eax
call fcn.1002cc30
jmp 0x100531d5
xor eax, eax
mov byte [ebp - 4], 0xb
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x100531f9
call fcn.1004ed00
mov ecx, dword [ebx + 0x4c]
push eax
push dword [ebx + 8]
call fcn.1002d750
mov ecx, dword [ebx + 0x4c]
call fcn.1002d770
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10053217
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10053235
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10053253
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10053272
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10008520
push 0x80004005
call fcn.10008520
int3