Function at 0x411890
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [0x43eff0], 0
jne 0x411b72
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x411ec0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [0x43efec]
mov dword [ebp - 0x18], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x14], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x430ac8
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
mov word [ebp - 0x2c], ax
movzx edx, word [ebp - 0x2c]
test edx, edx
jne 0x411934
movzx eax, word [ebp - 0x2c]
push eax
push 0x430ad4
push 0x430aec
push 0x47
push 0x430af4
call fcn.00401c80
add esp, 0x14
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x412060
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [0x43efec]
mov dword [ebp - 0x18], ecx
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x14], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], str.ArrayClass
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_RegisterClassA]
mov word [ebp - 0x2c], ax
movzx eax, word [ebp - 0x2c]
test eax, eax
jne 0x4119c6
movzx ecx, word [ebp - 0x2c]
push ecx
push 0x430b18
push 0x430b30
push 0x54
push 0x430b38
call fcn.00401c80
add esp, 0x14
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x24], 0x412110
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [0x43efec]
mov dword [ebp - 0x18], edx
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], str.CanvasClass
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov word [ebp - 0x2c], ax
movzx ecx, word [ebp - 0x2c]
test ecx, ecx
jne 0x411a4f
movzx edx, word [ebp - 0x2c]
push edx
push 0x430b5c
push 0x430b74
push 0x61
push 0x430b7c
call fcn.00401c80
add esp, 0x14
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x412b40
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [0x43efec]
mov dword [ebp - 0x18], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x14], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x430b94
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
mov word [ebp - 0x2c], ax
movzx edx, word [ebp - 0x2c]
test edx, edx
jne 0x411ae0
movzx eax, word [ebp - 0x2c]
push eax
push 0x430ba0
push 0x430bb8
push 0x6e
push 0x430bc0
call fcn.00401c80
add esp, 0x14
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x4126b0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [0x43efec]
mov dword [ebp - 0x18], ecx
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x14], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x430bd8
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_RegisterClassA]
mov word [ebp - 0x2c], ax
movzx eax, word [ebp - 0x2c]
test eax, eax
jne 0x411b72
movzx ecx, word [ebp - 0x2c]
push ecx
push str.register_class_rtn___d
push str.GXinit
push 0x7b
push str..wsmswin32gcommon.c
call fcn.00401c80
add esp, 0x14
push str.LEFTY3BMOUSE
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x411b90
mov dword [0x43b944], 0
jmp 0x411b9a
mov dword [0x43b944], 1
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x30], eax
push 0xc
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x43f01c], eax
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [0x43b950], eax
mov dword [0x43f014], 0
push 0x400
call fcn.00424810
add esp, 4
mov dword [0x43b954], eax
mov dword [0x43b958], 0x400
push 0x320
call fcn.00424810
add esp, 4
mov dword [0x43f00c], eax
mov dword [0x43f020], 0x64
push 0xc
call fcn.00424810
add esp, 4
mov dword [0x43f008], eax
mov dword [0x43f018], 1
push str.default
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov ecx, dword [0x43f008]
mov dword [ecx], eax
cmp dword [0x43f050], 0
jne 0x411c4d
mov edx, dword [0x43f008]
mov eax, dword [0x43b950]
mov dword [edx + 8], eax
jmp 0x411c98
mov ecx, dword [0x43f050]
movsx edx, byte [ecx]
test edx, edx
je 0x411c8b
mov eax, dword [0x43f050]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateFontA]
mov ecx, dword [0x43f008]
mov dword [ecx + 8], eax
jmp 0x411c98
mov edx, dword [0x43f008]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x30]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [0x43f000], 0
xor eax, eax
mov esp, ebp
pop ebp
ret