Function at 0x6c385388
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x45c
mov dword [esp + 4], 0x26
mov eax, dword [0x6c3c8fd0]
mov dword [esp], eax
call sym._GetDeviceCaps_8
sub esp, 8
mov edi, eax
mov dword [esp + 4], 0x18
mov eax, dword [0x6c3c8fd0]
mov dword [esp], eax
call sym._GetDeviceCaps_8
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0xc
mov eax, dword [0x6c3c8fd0]
mov dword [esp], eax
call sym._GetDeviceCaps_8
sub esp, 8
mov ebx, eax
call sym.libgdk_win32_2.0_0.dll_gdk_visual_get_type
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._g_object_new
mov dword [0x6c3c8dcc], eax
test byte [0x6c3c60a4], 0x20
jne 0x6c385599
and edi, 0x100
jne 0x6c385520
cmp ebx, 1
je 0x6c3855b2
cmp ebx, 4
je 0x6c385469
cmp ebx, 8
je 0x6c3856b1
cmp ebx, 0x10
je 0x6c385781
cmp ebx, 0x18
je 0x6c3854f2
cmp ebx, 0x20
je 0x6c3854f2
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._gdk_visual_init:_unsupported_BITSPIXEL:__d_n
mov dword [esp + 4], 4
mov dword [esp], 0x6c3c1d59
call sym._g_log
jmp 0x6c385467
mov edx, dword [0x6c3c8dcc]
mov dword [edx + 0xc], 2
mov eax, 0x10
nop
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], 0
mov dword [edx + 0x1c], 0x2a
mov esi, dword [edx + 0xc]
lea ecx, [esi - 4]
cmp ecx, 1
jbe 0x6c3855d2
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0x38], 0
mov dword [edx + 0x3c], 0
mov dword [edx + 0x40], 0
mov dword [edx + 0x18], eax
mov dword [0x6c3c8dd4], ebx
mov dword [0x6c3c8dd0], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, dword [0x6c3c8dcc]
mov dword [edx + 0xc], 4
mov dword [edx + 0x20], 0xff0000
mov dword [edx + 0x2c], 0xff00
mov dword [edx + 0x38], 0xff
xor eax, eax
mov ebx, 0x18
jmp 0x6c38547c
mov dword [esp + 4], 0x68
mov eax, dword [0x6c3c8fd0]
mov dword [esp], eax
call sym._GetDeviceCaps_8
push edx
push edx
mov esi, eax
mov dword [esp], str.GDK_WIN32_MAX_COLORS
call sym._getenv
mov edi, eax
mov edx, dword [0x6c3c8dcc]
mov dword [edx + 0xc], 3
test byte [0x6c3c60a4], 0x20
jne 0x6c38574b
cmp esi, 0x100
je 0x6c3856e1
mov dword [esp + 0x10], str.sizepalette__256
mov dword [esp + 0xc], str._gdk_visual_init
mov dword [esp + 8], 0x74
mov dword [esp + 4], str.gdkvisual_win32.c
mov dword [esp], 0x6c3c1d59
call sym._g_assertion_message_expr
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str.BITSPIXEL_d_NUMCOLORS_d_n
call sym._g_print
jmp 0x6c385409
cmp esi, 0x10
je 0x6c3856c8
mov edx, dword [0x6c3c8dcc]
mov dword [edx + 0xc], 0
mov eax, 2
jmp 0x6c38547c
mov eax, dword [edx + 0x20]
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
test al, 1
jne 0x6c3855f8
mov ecx, 1
mov edi, ecx
shr eax, 1
inc ecx
test al, 1
je 0x6c3855ec
mov dword [edx + 0x24], edi
test al, 1
je 0x6c385610
mov ecx, 1
lea esi, [esi]
mov edi, ecx
shr eax, 1
inc ecx
test al, 1
jne 0x6c385604
mov dword [edx + 0x28], edi
mov eax, dword [edx + 0x2c]
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
test al, 1
jne 0x6c385638
mov ecx, 1
nop
mov edi, ecx
shr eax, 1
inc ecx
test al, 1
je 0x6c38562c
mov dword [edx + 0x30], edi
test al, 1
je 0x6c385650
mov ecx, 1
lea esi, [esi]
mov edi, ecx
shr eax, 1
inc ecx
test al, 1
jne 0x6c385644
mov dword [edx + 0x34], edi
mov eax, dword [edx + 0x38]
mov dword [edx + 0x3c], 0
mov dword [edx + 0x40], 0
test al, 1
jne 0x6c385678
mov ecx, 1
nop
mov edi, ecx
shr eax, 1
inc ecx
test al, 1
je 0x6c38566c
mov dword [edx + 0x3c], edi
test al, 1
je 0x6c385690
mov ecx, 1
lea esi, [esi]
mov edi, ecx
shr eax, 1
inc ecx
test al, 1
jne 0x6c385684
mov dword [edx + 0x40], edi
mov eax, dword [edx + 0x40]
mov ecx, dword [edx + 0x34]
cmp ecx, eax
jge 0x6c38569c
mov ecx, eax
mov eax, dword [edx + 0x28]
cmp ecx, eax
jge 0x6c3856a5
mov ecx, eax
mov eax, 1
shl eax, cl
jmp 0x6c3854db
mov edx, dword [0x6c3c8dcc]
mov dword [edx + 0xc], 2
mov eax, 0x100
jmp 0x6c38547c
mov edx, dword [0x6c3c8dcc]
mov dword [edx + 0xc], 2
mov eax, 0x10
mov bl, 4
jmp 0x6c38547c
test edi, edi
je 0x6c3856f2
mov dword [esp], edi
call sym._atoi
mov dword [0x6c3c65c4], eax
mov eax, dword [0x6c3c65c4]
cmp eax, 0xf
jle 0x6c38573b
cmp eax, 0xff
jg 0x6c38573b
cmp eax, 0x1f
jle 0x6c38589c
cmp eax, 0x3f
jle 0x6c38587b
cmp eax, 0x7f
jle 0x6c385760
mov dword [esp], 0x64
call sym.libgdk_win32_2.0_0.dll_gdk_rgb_set_min_colors
mov eax, pe_nt_image_headers32
mov ebx, 7
mov edx, dword [0x6c3c8dcc]
jmp 0x6c38547c
mov eax, 0x100
mov edx, dword [0x6c3c8dcc]
jmp 0x6c38547c
mov dword [esp + 4], esi
mov dword [esp], str.SIZEPALETTE_d_n
call sym._g_print
jmp 0x6c385561
mov dword [esp], 0x1b
call sym.libgdk_win32_2.0_0.dll_gdk_rgb_set_min_colors
mov eax, 0x40
mov ebx, 6
mov edx, dword [0x6c3c8dcc]
jmp 0x6c38547c
mov eax, dword [0x6c3c8dcc]
mov dword [eax + 0xc], 4
lea ebx, [ebp - 0x440]
mov ecx, 0x428
xor eax, eax
mov edi, ebx
rep stosb byte es:[edi], al
mov dword [ebp - 0x440], 0x28
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov eax, dword [0x6c3c8fd0]
mov dword [esp], eax
call sym._CreateCompatibleBitmap_12
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x6c3c8fd0]
mov dword [esp], eax
call sym._GetDIBits_28
sub esp, 0x1c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [0x6c3c8fd0]
mov dword [esp], eax
call sym._GetDIBits_28
sub esp, 0x1c
mov dword [esp], esi
call sym._DeleteObject_4
push eax
mov eax, dword [ebp - 0x430]
cmp eax, 3
je 0x6c3858f5
test eax, eax
jne 0x6c3858c9
mov edx, dword [0x6c3c8dcc]
mov dword [edx + 0x20], 0x7c00
mov dword [edx + 0x2c], 0x3e0
mov dword [edx + 0x38], 0x1f
mov ebx, 0xf
jmp 0x6c38547c
mov dword [esp], 0x1b
call sym.libgdk_win32_2.0_0.dll_gdk_rgb_set_min_colors
mov eax, 0x20
mov ebx, 5
mov edx, dword [0x6c3c8dcc]
jmp 0x6c38547c
mov eax, dword [0x6c3c8dcc]
mov dword [eax + 0xc], 2
mov dword [esp], 8
call sym.libgdk_win32_2.0_0.dll_gdk_rgb_set_min_colors
mov eax, 0x10
mov ebx, 4
mov edx, dword [0x6c3c8dcc]
jmp 0x6c38547c
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str._gdk_visual_init
mov dword [esp + 8], 0xd7
mov dword [esp + 4], str.gdkvisual_win32.c
mov dword [esp], 0x6c3c1d59
call sym._g_assertion_message
mov edi, dword [ebp - 0x418]
mov esi, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x410]
mov eax, esi
or eax, edi
or eax, ecx
xor ebx, ebx
jmp 0x6c38591e
mov edx, eax
and edx, 1
cmp edx, 1
sbb ebx, 0xffffffff
shr eax, 1
test eax, eax
jne 0x6c385911
mov edx, dword [0x6c3c8dcc]
mov dword [edx + 0x20], edi
mov dword [edx + 0x2c], esi
mov dword [edx + 0x38], ecx
jmp 0x6c38547c