Function at 0x405270
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x42ad2d
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x435a7c]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435a7c]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov eax, dword [esp + 0x454]
mov ebp, dword [esp + 0x450]
mov edi, ecx
mov esi, edx
push 0x42fe50
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], eax
call fcn.00402800
push 0x42fe50
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44c], 0
call fcn.00402800
push 0x42fe50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44c], 1
call fcn.00402800
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x44c], 2
call fcn.00405db0
add esp, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44c], 3
call fcn.00402ad0
mov byte [esp + 0x448], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405351
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push str.monitor.ini
push ecx
lea edx, [esp + 0x20]
push 0x42f800
push edx
call fcn.004027e0
mov eax, dword [esp + 0x2c]
push str.default.dat
push eax
lea ecx, [esp + 0x40]
push 0x42f800
push ecx
call fcn.004027e0
mov edx, dword [esp + 0x38]
mov ebx, dword [0x42c2cc]
add esp, 0x20
push edx
call ebx
cmp eax, 1
je 0x40544e
mov eax, dword [esp + 0x28]
push eax
call ebx
cmp eax, 1
je 0x40543b
push 0x42fc24
call fcn.004065d0
mov byte [esp + 0x44c], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x448], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x448], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x405835
mov ebx, dword [esp + 0x28]
push 0x42fc4c
call fcn.004065d0
add esp, 4
jmp 0x405452
mov ebx, dword [esp + 0x18]
mov ecx, edi
call fcn.004019c0
mov ecx, ebp
call fcn.004019c0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004085f6
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
call fcn.004085f6
push 0x42fe50
lea ecx, [esp + 0x18]
call fcn.00402800
push 0x2800
mov byte [esp + 0x44c], 4
call fcn.00407483
push 0x2800
mov esi, eax
push 0
push esi
call fcn.00416ba0
add esp, 0x10
push ebx
push 0x2800
push esi
push 0x42fc78
push 0x42fc7c
push str.appver
call dword [0x42c290]
push esi
push 0x42fc04
push edi
call fcn.004027e0
push 0x2800
push 0
push esi
call fcn.00416ba0
mov edi, dword [0x42c290]
add esp, 0x18
push ebx
push 0x2800
push esi
push 0x42fc78
push 0x42fc7c
push str.appmd5
call edi
push esi
push 0x42fc04
push ebp
call fcn.004027e0
push 0x2800
push 0
push esi
call fcn.00416ba0
push 0x3ff
xor ebp, ebp
lea ecx, [esp + 0x59]
push ebp
push ecx
mov dword [esp + 0x48], 1
mov byte [esp + 0x60], 0
call fcn.00416ba0
add esp, 0x24
push 0x42fe50
lea ecx, [esp + 0x30]
call fcn.00402800
mov byte [esp + 0x448], 5
push 0xa
push 0x400
lea edx, [esp + 0x44]
push edx
add ebp, 1
push ebp
call fcn.00414686
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push str.vs_s
push ecx
call fcn.004027e0
mov eax, dword [esp + 0x48]
add esp, 0x1c
cmp dword [eax - 4], 1
jle 0x405598
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x30]
call fcn.00401830
mov eax, dword [esp + 0x2c]
push ebx
push 0x2800
push esi
push str.NoExist
push eax
push str.ver_server_url
call edi
push esi
lea eax, [esp + 0x18]
push 0x42fc04
push eax
call fcn.004027e0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [eax - 0xc], 0
jl 0x4055ee
push str.NoExist
push eax
call fcn.004148b4
add esp, 8
test eax, eax
je 0x4055ee
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4055ee
mov dword [esp + 0x24], 0
jmp 0x405600
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00408841
push 0x2800
push 0
push esi
call fcn.00416ba0
add esp, 0xc
cmp dword [esp + 0x24], 0
jne 0x405551
push 0
push 0x42fe50
lea ecx, [esp + 0x1c]
call fcn.00401930
push 0x2800
xor ebp, ebp
push ebp
push esi
mov dword [esp + 0x30], 1
call fcn.00416ba0
add esp, 0xc
push 0x42fe50
lea ecx, [esp + 0x24]
call fcn.00402800
mov byte [esp + 0x448], 6
lea ebx, [ebx]
push 0xa
push 0x400
lea eax, [esp + 0x44]
push eax
add ebp, 1
push ebp
call fcn.00414686
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x34]
push str.us_s
push edx
call fcn.004027e0
mov eax, dword [esp + 0x3c]
add esp, 0x1c
cmp dword [eax - 4], 1
jle 0x4056a7
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00401830
mov eax, dword [esp + 0x20]
push ebx
push 0x2800
push esi
push str.NoExist
push eax
push str.update_server_url
call edi
push esi
lea ecx, [esp + 0x18]
push 0x42fc04
push ecx
call fcn.004027e0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [eax - 0xc], 0
jl 0x4056fd
push str.NoExist
push eax
call fcn.004148b4
add esp, 8
test eax, eax
je 0x4056fd
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4056fd
mov dword [esp + 0x24], 0
jmp 0x40570f
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00408841
push 0x2800
push 0
push esi
call fcn.00416ba0
add esp, 0xc
cmp dword [esp + 0x24], 0
jne 0x405660
push esi
call fcn.0040747e
push 0x42fccc
call fcn.004065d0
mov byte [esp + 0x450], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x448], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40578d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x448], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x448], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x448], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405805
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x448], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405830
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00414b37
add esp, 0x438
ret