Function at 0x490f20
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x23c]
test ecx, ecx
je 0x490f3f
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x23c], 0
push 0x20
call fcn.0046d5f3
add esp, 4
test eax, eax
je 0x490f62
mov ecx, eax
call fcn.0049ad10
mov dword [esi + 0x23c], eax
mov ecx, eax
pop esi
jmp 0x49b080
xor eax, eax
mov dword [esi + 0x23c], eax
mov ecx, eax
pop esi
jmp 0x49b080
sub esp, 0x5c
mov eax, dword [0x4f4970]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
push 0x13ad
mov esi, ecx
call fcn.004b7090
add esp, 4
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.0049a9c0
lea ecx, [esp + 0xc]
push 0x4ceafc
push ecx
call fcn.0042c800
mov ecx, dword [eax]
xor ebx, ebx
add esp, 8
xor edx, edx
mov eax, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], dx
lea edi, [eax + 2]
jmp 0x49b0e0
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x49b0e0
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0040d270
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49b11a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x49b145
push 0x11
push 0x4ceafc
push eax
push ebx
lea ecx, [esp + 0x58]
call fcn.004195d0
test eax, eax
je 0x49b145
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esi + 8]
call fcn.00441120
lea edx, [esp + 0xc]
push 0x4cea60
push edx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0042c830
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49b192
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x49b1e8
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push 0x4cea60
push edx
call fcn.0042c830
add esp, 8
push eax
call fcn.004b7f80
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49b1d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], ebx
je 0x49b1e8
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0049ade0
push ebx
push ebx
push esi
push str.https:__api1.shuame.com_v2_client_PortProc.xml
call fcn.004b8920
mov byte [0x4facd0], 1
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x10
add eax, edx
je 0x49b290
cmp dword [esp + 0x28], 0x10
jb 0x49b22e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046d0e6
add esp, 4
mov esi, 8
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x44], esi
jb 0x49b256
mov edx, dword [esp + 0x30]
push edx
call fcn.0046d0e6
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], ax
cmp dword [esp + 0x60], esi
jb 0x49b27c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0046d0e6
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0046da8a
add esp, 0x5c
ret
cmp dword [esp + 0x28], 0x10
jb 0x49b2a4
mov edx, dword [esp + 0x14]
push edx
call fcn.0046d0e6
add esp, 4
mov esi, 8
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x44], esi
jb 0x49b2cc
mov eax, dword [esp + 0x30]
push eax
call fcn.0046d0e6
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
cmp dword [esp + 0x60], esi
jb 0x49b2f2
mov edx, dword [esp + 0x4c]
push edx
call fcn.0046d0e6
add esp, 4
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.0046da8a
add esp, 0x5c
ret