Function at 0x405860
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x42abc2
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x435a7c]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435a7c]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x450]
mov ebp, dword [esp + 0x44c]
mov edi, dword [esp + 0x454]
mov ebx, ecx
mov esi, edx
push 0x42fe50
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], eax
call fcn.00402800
push 0x42fe50
lea ecx, [esp + 0x1c]
mov dword [esp + 0x448], 0
call fcn.00402800
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x448], 1
call fcn.00405db0
add esp, 4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x448], 2
call fcn.00402ad0
mov byte [esp + 0x444], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405932
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x405948
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.00401830
mov edi, dword [edi]
mov edx, dword [esp + 0x28]
push edi
push edx
lea eax, [esp + 0x20]
push 0x42f800
push eax
call fcn.004027e0
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
call dword [0x42c2cc]
cmp eax, 1
je 0x4059cc
mov byte [esp + 0x444], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40599a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x444], 0xffffffff
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 0x4059c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x405d83
mov edi, dword [esp + 0x18]
mov ecx, ebp
call fcn.004019c0
mov ecx, ebx
call fcn.004019c0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004085f6
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
call fcn.004085f6
push 0x42fe50
lea ecx, [esp + 0x18]
call fcn.00402800
push 0x2800
mov byte [esp + 0x448], 3
call fcn.00407483
push 0x2800
mov esi, eax
push 0
push esi
call fcn.00416ba0
add esp, 0x10
push edi
push 0x2800
push esi
push 0x42fc78
push 0x42fc7c
push str.appver
call dword [0x42c290]
push esi
push 0x42fc04
push ebp
call fcn.004027e0
push 0x2800
push 0
push esi
call fcn.00416ba0
mov ebp, dword [0x42c290]
add esp, 0x18
push edi
push 0x2800
push esi
push 0x42fc78
push 0x42fc7c
push str.appmd5
call ebp
push esi
push 0x42fc04
push ebx
call fcn.004027e0
push 0x2800
push 0
push esi
call fcn.00416ba0
xor ebx, ebx
push 0x3ff
lea ecx, [esp + 0x55]
push ebx
push ecx
mov dword [esp + 0x48], 1
mov byte [esp + 0x5c], bl
call fcn.00416ba0
add esp, 0x24
push 0x42fe50
lea ecx, [esp + 0x20]
call fcn.00402800
mov byte [esp + 0x444], 4
mov edi, edi
push 0xa
push 0x400
lea edx, [esp + 0x40]
push edx
add ebx, 1
push ebx
call fcn.00414686
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x30]
push str.vs_s
push ecx
call fcn.004027e0
mov eax, dword [esp + 0x38]
add esp, 0x1c
cmp dword [eax - 4], 1
jle 0x405b17
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401830
mov eax, dword [esp + 0x1c]
push edi
push 0x2800
push esi
push str.NoExist
push eax
push str.ver_server_url
call ebp
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 0x405b6d
push str.NoExist
push eax
call fcn.004148b4
add esp, 8
test eax, eax
je 0x405b6d
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x405b6d
mov dword [esp + 0x24], 0
jmp 0x405b7f
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 0x405ad0
push 0
push 0x42fe50
lea ecx, [esp + 0x1c]
call fcn.00401930
push 0x2800
xor ebx, ebx
push ebx
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 + 0x444], 5
lea esp, [esp]
push 0xa
push 0x400
lea eax, [esp + 0x40]
push eax
add ebx, 1
push ebx
call fcn.00414686
lea ecx, [esp + 0x48]
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 0x405c27
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00401830
mov eax, dword [esp + 0x20]
push edi
push 0x2800
push esi
push str.NoExist
push eax
push str.update_server_url
call ebp
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 0x405c7d
push str.NoExist
push eax
call fcn.004148b4
add esp, 8
test eax, eax
je 0x405c7d
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x405c7d
mov dword [esp + 0x24], 0
jmp 0x405c8f
mov ecx, dword [esp + 0x2c]
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 0x405be0
push esi
call fcn.0040747e
mov byte [esp + 0x448], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x444], 3
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 0x405d03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x444], 1
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 0x405d2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x444], 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 0x405d53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x444], 0xffffffff
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 0x405d7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.00414b37
add esp, 0x434
ret