Function at 0x4055e0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
xor ebp, ebp
mov esi, eax
cmp esi, ebp
push edi
mov edi, ecx
mov dword [esp + 0x10], ebp
je 0x4059f2
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x3c], ebx
je 0x4059f2
lea eax, [esp + 0x40]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push ebp
push ebp
mov dword [edi + 0x63c], ecx
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0xa0]
push ecx
push ebp
lea edx, [esp + 0x68]
push edx
push ebx
mov dword [edi + 0x638], eax
mov dword [esp + 0x70], 0x28
mov dword [esp + 0x74], eax
mov word [esp + 0x7c], 1
mov word [esp + 0x7e], 0x20
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x4059eb
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x38], edi
je 0x4059b9
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x80]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x8c]
mov edx, eax
and edx, reloc.WSOCK32.dll_closesocket
jns 0x4056ea
dec edx
or edx, 0xfffffffc
inc edx
je 0x40570b
lea esp, [esp]
add eax, 1
mov ecx, eax
and ecx, reloc.WSOCK32.dll_closesocket
jns 0x405702
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x4056f0
mov dword [esp + 0x8c], eax
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x48]
push 0xcc0020
push ebp
push ebp
push edi
push edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
push eax
push ebp
push ebp
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x9c]
mov ebx, 0x64
push ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0xa0]
push ebp
push edx
push 4
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0x660
push 8
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebp
mov esi, eax
push ebp
push bind
push bind
lea eax, [esi + 0x10]
push eax
mov dword [esi], 0x20
mov dword [esi + 4], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 8], ebp
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x88]
add ecx, 0xffffffff
imul ecx, dword [esp + 0x8c]
add ecx, dword [esp + 0x94]
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebp
jle 0x40591b
mov ebp, dword [esp + 0x44]
xor edi, edi
test ebp, ebp
jle 0x4058f9
lea eax, [ebx + 2]
shl eax, 4
mov dword [esp + 0x24], eax
lea ebx, [ebx]
cmp edi, ebp
mov dword [esp + 0x1c], edi
lea eax, [ecx + edi*4]
jge 0x4058e6
nop
mov cl, byte [eax]
cmp cl, 0xee
mov bl, byte [eax + 1]
mov dl, byte [eax + 2]
jb 0x40581b
cmp cl, 0xff
ja 0x40581b
cmp bl, 0x11
ja 0x40581b
cmp dl, 0xee
jb 0x40581b
cmp dl, 0xff
ja 0x40581b
add edi, 1
add eax, 4
cmp edi, ebp
jl 0x4057f0
cmp edi, dword [esp + 0x1c]
jle 0x4058e6
mov ecx, dword [esi + 8]
cmp ecx, dword [esp + 0x14]
jb 0x405851
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add dword [esp + 0x14], 0x64
add eax, 0x640
push eax
push esi
push 8
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 8]
lea ebx, [eax + 1]
push ebx
push edi
push eax
mov eax, dword [esp + 0x28]
add ecx, 2
shl ecx, 4
push eax
add ecx, esi
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add dword [esi + 8], 1
cmp dword [esi + 8], 0xbb8
lea ebp, [esi + 0x10]
mov dword [ebp], edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
jne 0x4058e2
mov ecx, dword [esp + 0x24]
push esi
push ecx
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4058c2
push 2
push ebx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4058c6
mov dword [esp + 0x10], ebx
push 0
push 0
push bind
push bind
push ebp
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_SetRect]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
add edi, 1
cmp edi, ebp
jl 0x4057e0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub ecx, dword [esp + 0x8c]
add eax, 1
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jl 0x4057c6
xor ebp, ebp
push esi
add ebx, 2
shl ebx, 4
push ebx
push ebp
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x40594a
push 2
push edi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
jmp 0x405954
mov dword [esp + 0x10], edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edx
push eax
push ebp
push ebp
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebx, eax
test ebx, ebx
je 0x4059ac
mov eax, dword [esp + 0x10]
push 3
push ebx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
call edi
mov ecx, dword [esp + 0x28]
push esi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call edi
mov ebx, dword [esp + 0x3c]
jmp 0x4059bf
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x34]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call edi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret