Function at 0x413320
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c737
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404770
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx - 0xc]
test eax, eax
js 0x41364a
push 0x57f910
push ecx
call fcn.00523c27
add esp, 8
test eax, eax
je 0x41364a
sub eax, dword [ebp - 0x21c]
sar eax, 1
cmp eax, 0xffffffff
je 0x41364a
push str.http:__www.huowan.com_
lea ecx, [ebp - 0x224]
call fcn.00404770
push 0x10
lea edx, [ebp - 0x220]
mov ebx, 1
push edx
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], bl
call fcn.00407d10
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.004040b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413406
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jle 0x4134cf
push 0x7c
push eax
call fcn.00523e32
add esp, 8
test eax, eax
je 0x4134cf
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x4134cf
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00407d10
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.004040b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413487
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00403be0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.004040b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4134cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x2f
lea ecx, [ebp - 0x21c]
call fcn.00413980
mov eax, dword [ebp - 0x21c]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x4134f3
push 0x80070057
call fcn.00404970
movzx edi, word [eax]
test esi, esi
jg 0x413504
push 0x80070057
call fcn.00404970
cmp dword [eax - 4], ebx
jle 0x41351b
push esi
lea ecx, [ebp - 0x21c]
call fcn.00404480
mov eax, dword [ebp - 0x21c]
add edi, 0xffffffe0
mov word [eax], di
test esi, esi
js 0x4134e9
mov eax, dword [ebp - 0x21c]
cmp esi, dword [eax - 8]
jg 0x4134e9
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x21c]
xor edx, edx
xor ecx, ecx
mov word [eax + esi*2], dx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.00525e90
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.haogamerGameLogin_
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.00523249
mov edx, dword [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00523249
push str..exe
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.00523249
add esp, 0x24
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413611
mov ecx, dword [0x5ad1d4]
push ebx
mov edi, 0x57f96c
mov edx, 0x57f98c
call fcn.00403760
add esp, 4
cmp eax, ebx
jne 0x4135f5
lea esi, [ebp - 0x21c]
call fcn.004138d0
jmp 0x41361c
mov eax, dword [ebp - 0x224]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41361c
lea ecx, [ebp - 0x218]
call fcn.00403670
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov dword [ecx], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41364a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413673
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret 0x18