Function at 0x411200
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], str.kernel32.dll
mov dword [ebp - 0x3c], eax
call eax
sub esp, 4
test eax, eax
je 0x411765
mov dword [esp + 4], str.InitializeCriticalSectionAndSpinCount
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x411765
mov dword [esp + 4], 0xfa0
mov dword [esp], 0x42879c
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 8
mov dword [esp], 0x428224
call ebx
sub esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [esp], 0x428200
call ebx
mov eax, dword [0x428204]
sub esp, 4
mov dword [0x4281e8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
not edx
shr edx, 0x1f
mov dword [0x4281d4], edx
xor edx, edx
test eax, eax
jns 0x4112a3
xor edx, edx
cmp al, 3
setbe dl
mov dword [esp], str.GC_PRINT_VERBOSE_STATS
or dword [0x428a6c], edx
call sub.msvcrt.dll_getenv
test eax, eax
je 0x411b83
mov dword [0x428a70], 2
mov dword [esp], str.GC_DUMP_REGULARLY
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4112e1
mov dword [0x4281e4], 1
mov dword [esp], str.GC_FIND_LEAK
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4112fb
mov dword [0x428788], 1
mov dword [esp], str.GC_FINDLEAK_DELAY_FREE
call sub.msvcrt.dll_getenv
test eax, eax
je 0x411315
mov dword [0x4281e0], 1
mov dword [esp], str.GC_ALL_INTERIOR_POINTERS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x41132f
mov dword [0x428a10], 1
mov dword [esp], str.GC_DONT_GC
call sub.msvcrt.dll_getenv
test eax, eax
je 0x411349
mov dword [0x4287d0], 1
mov dword [esp], str.GC_PRINT_BACK_HEIGHT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x411363
mov dword [0x4281dc], 1
mov dword [esp], str.GC_NO_BLACKLIST_WARNING
call sub.msvcrt.dll_getenv
test eax, eax
je 0x41137d
mov dword [0x41f160], 0x7fffffff
mov dword [esp], str.GC_TRACE
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4113a2
mov dword [esp + 4], 0
mov dword [esp], str.GC_Warning:_Tracing_not_enabled:_Ignoring_GC_TRACE_value_n
call dword [0x42182c]
mov dword [esp], str.GC_PAUSE_TIME_TARGET
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4113c3
mov dword [esp], eax
call sub.msvcrt.dll_atol
test eax, eax
jle 0x4113c3
mov dword [0x41f00c], eax
mov dword [esp], str.GC_FULL_FREQUENCY
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4113e4
mov dword [esp], eax
call sub.msvcrt.dll_atoi
test eax, eax
jle 0x4113e4
mov dword [0x41f008], eax
mov dword [esp], str.GC_LARGE_ALLOC_WARN_INTERVAL
call sub.msvcrt.dll_getenv
test eax, eax
je 0x411409
mov dword [esp], eax
call sub.msvcrt.dll_atol
test eax, eax
jle 0x411af1
mov dword [0x41f160], eax
mov dword [esp], str.GC_FREE_SPACE_DIVISOR
call sub.msvcrt.dll_getenv
test eax, eax
je 0x41142a
mov dword [esp], eax
call sub.msvcrt.dll_atoi
test eax, eax
jle 0x41142a
mov dword [0x421824], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x428a10]
mov dword [0x4289d8], eax
test ecx, ecx
je 0x411449
mov dword [0x41f03c], 0xfffffffc
mov edx, 0x445474
mov eax, 0x428a80
call fcn.00412020
mov edx, 0x41f160
mov eax, 0x41f020
call fcn.00412020
mov edx, dword [0x4281d8]
test edx, edx
je 0x411b0b
call fcn.0041ae30
test eax, eax
mov dword [0x428af4], eax
je 0x411c35
lea edi, [eax + 4]
mov dword [eax], 0
mov dword [eax + 0x1008], 0
mov edx, 0x445474
and edi, 0xfffffffc
sub eax, edi
lea ecx, [eax + 0x100c]
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, 0x444474
mov ecx, dword [0x428af4]
lea esi, [esi]
mov dword [eax], ecx
add eax, 4
cmp edx, eax
jne 0x4114c0
mov eax, dword [0x4287d8]
test eax, eax
je 0x41199c
cmp dword [0x428a70], 2
je 0x4119bd
test word [0x4281e8], 0xfff
jne 0x411aae
call fcn.004100b0
mov eax, dword [0x428a64]
test eax, eax
je 0x411bfe
mov eax, dword [0x428a70]
test eax, eax
jne 0x411bed
mov dword [0x4287d8], 1
mov eax, dword [0x428a6c]
test eax, eax
jne 0x411807
mov edi, dword [0x428a10]
test edi, edi
je 0x411799
call fcn.0041ac90
mov dword [0x428a04], eax
call fcn.0041ac90
mov ebx, eax
mov dword [0x428a00], eax
mov eax, dword [0x428a04]
test ebx, ebx
je 0x411c71
test eax, eax
je 0x411c71
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov eax, 0x1000
call fcn.0040ce00
mov dword [esp], str.GC_INITIAL_HEAP_SIZE
call sub.msvcrt.dll_getenv
test eax, eax
mov edi, eax
je 0x4115c7
cmp byte [eax], 0
jne 0x4119ce
mov dword [esp + 4], edi
mov dword [esp], str.GC_Warning:_Bad_initial_heap_size__s___ignoring_n
call dword [0x42182c]
mov dword [esp], str.GC_MAXIMUM_HEAP_SIZE
mov esi, 0x10000
call sub.msvcrt.dll_getenv
mov edi, eax
mov eax, 0x10
test edi, edi
je 0x411781
cmp byte [edi], 0
jne 0x411a10
mov dword [esp + 4], edi
mov dword [esp], str.GC_Warning:_Bad_maximum_heap_size__s___ignoring_n
call dword [0x42182c]
test esi, esi
jne 0x41177c
mov edx, dword [0x428a10]
test edx, edx
je 0x411742
mov ebx, 0x42bc70
mov ecx, 0x400
mov eax, 0x1010101
mov edi, ebx
rep stosd dword es:[edi], eax
cmp byte [0x42bc70], 0
jne 0x411641
mov byte [0x42bc70], 1
mov byte [0x428c58], 1
mov ebx, 0x100
mov dword [0x429868], 1
mov ecx, edx
sub ebx, edx
je 0x411689
add ecx, 7
mov eax, 1
mov esi, 0x1fffffff
mov edi, ecx
not edi
mov esi, esi
lea edi, [edi]
lea edx, [eax + ecx]
shr edx, 3
cmp eax, edi
cmovae edx, esi
mov dword [eax*4 + 0x429868], edx
add eax, 1
cmp eax, ebx
jbe 0x411670
mov dword [0x4287b8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp], str.kernel32.dll
mov esi, eax
call dword [ebp - 0x3c]
sub esp, 4
test eax, eax
mov dword [0x4281c8], esi
je 0x41173b
mov dword [esp + 4], str.IsWow64Process
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
mov edi, eax
je 0x41173b
lea ebx, [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
je 0x41173e
mov eax, dword [ebp - 0x34]
mov dword [0x4281c4], eax
mov eax, dword [0x4281d8]
mov edx, esi
mov dword [ebp - 0x34], eax
mov eax, ebx
call fcn.0040b290
mov ecx, dword [0x4281e4]
test ecx, ecx
jne 0x411adf
mov edx, dword [0x4287d0]
test edx, edx
je 0x411ad0
mov eax, dword [0x428788]
test eax, eax
je 0x411733
mov dword [esp], 0x410cb0
call fcn.0041b4f0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [ebp - 0x34]
xor eax, eax
jmp 0x4116ec
cmp byte [0x42bc70], 0
je 0x411633
mov dword [0x429868], 1
mov ebx, 0x100
xor ecx, ecx
jmp 0x411656
mov dword [esp], 0x42879c
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call ebx
sub esp, 4
jmp 0x41125b
mov eax, esi
shr eax, 0xc
call fcn.00414830
test eax, eax
je 0x411c68
add dword [0x428a84], esi
jmp 0x411609
mov esi, dword [0x428a08]
test esi, esi
jne 0x411536
call fcn.0041ac90
mov dword [0x428a0c], eax
call fcn.0041ac90
mov ebx, eax
mov dword [0x428a08], eax
mov eax, dword [0x428a0c]
test eax, eax
je 0x411c71
test ebx, ebx
je 0x411c71
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_memset
jmp 0x411536
mov edx, dword [0x4281e8]
mov ebx, dword [0x428208]
lea esi, [ebp - 0x34]
mov eax, edx
neg eax
and eax, 0x421828
mov edi, eax
jmp 0x41183f
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x411868
mov edx, dword [0x4281e8]
mov edi, eax
mov eax, edi
sub eax, edx
cmp edi, eax
jb 0x411868
cmp eax, ebx
jb 0x411868
mov dword [esp + 8], 0x1c
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
cmp eax, 0x1c
je 0x411830
lea esi, [ebp - 0x34]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
jmp 0x411880
cmp dword [0x42820c], edi
jbe 0x411980
mov dword [esp + 8], 0x1c
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
cmp eax, 0x1c
jne 0x411980
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x411980
mov eax, dword [0x4289d4]
cmp eax, dword [0x41f004]
jbe 0x4118ca
mov dword [0x41f004], eax
mov eax, dword [0x4281cc]
test eax, eax
je 0x4118ef
cmp dword [eax], edx
jne 0x4118e8
jmp 0x411980
cmp edx, dword [eax]
je 0x411980
mov eax, dword [eax + 4]
test eax, eax
jne 0x4118e0
mov ecx, dword [0x428b0c]
test ecx, ecx
jle 0x411920
cmp edx, dword [0x43cc74]
je 0x411980
xor eax, eax
jmp 0x411919
cmp edx, dword [eax*4 + 0x43cc74]
je 0x411980
add eax, 1
cmp eax, ecx
jne 0x411910
mov ebx, dword [ebp - 0x28]
add ebx, edi
cmp dword [ebp - 0x24], 0x1000
je 0x411939
cmp ebx, edi
jb 0x411980
mov edi, ebx
jmp 0x411880
mov eax, dword [ebp - 0x20]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x41194c
sub eax, 0x40
and eax, 0xffffffbf
jne 0x41192e
mov edx, dword [ebp - 0x40]
cmp edi, edx
je 0x411ae9
mov eax, dword [ebp - 0x44]
cmp edx, eax
je 0x411ac5
xor ecx, ecx
call fcn.004121c0
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], edi
jmp 0x41192e
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
cmp eax, esi
je 0x411528
xor ecx, ecx
mov edx, esi
call fcn.004121c0
jmp 0x411528
mov dword [esp], str.GC_ENABLE_INCREMENTAL
call sub.msvcrt.dll_getenv
test eax, eax
je 0x41151b
cmp dword [0x428a70], 2
jne 0x4114e3
mov dword [esp], str.Initializing_mprotect_virtual_dirty_bit_implementation_n
call fcn.004101f0
jmp 0x4114e3
lea ebx, [ebp - 0x34]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strtoul
mov edx, dword [ebp - 0x34]
mov esi, eax
movzx eax, byte [edx]
test al, al
je 0x411a54
cmp byte [edx + 1], 0
jne case.0x411a09.1
sub eax, 0x47
cmp al, 0x26
ja case.0x411a09.1
movzx eax, al
jmp dword [eax*4 + 0x423734]
lea ebx, [ebp - 0x34]
mov dword [esp + 8], 0xa
mov dword [esp], edi
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strtoul
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx]
test dl, dl
je 0x411a7b
cmp byte [ecx + 1], 0
jne case.0x411a4a.1
sub edx, 0x47
cmp dl, 0x26
ja case.0x411a4a.1
movzx edx, dl
jmp dword [edx*4 + 0x4237d0]
shl esi, 0x1e
cmp esi, 0xffffffff
je case.0x411a09.1
mov dword [esp], str.GC_MAXIMUM_HEAP_SIZE
call sub.msvcrt.dll_getenv
test eax, eax
mov edi, eax
jne 0x4115e7
jmp 0x411601
shl eax, 0x1e
cmp eax, esi
setb cl
cmp eax, 0xffffffff
sete dl
or edx, ecx
test dl, dl
jne case.0x411a4a.1
mov ebx, dword [0x4287c0]
test ebx, ebx
jne 0x411aa4
mov dword [0x4287c0], 2
mov dword [0x4287c8], eax
jmp 0x411601
mov dword [esp], str.Page_size_not_multiple_of_HBLKSIZE
call fcn.00410030
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x4114f2
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], edi
jmp 0x41192e
mov eax, fcn.00414a80
call fcn.00410e30
jmp 0x41171e
call fcn.00419910
jmp 0x411710
mov dword [ebp - 0x40], ebx
jmp 0x41192e
mov dword [esp + 4], 0
mov dword [esp], str.GC_Warning:_GC_LARGE_ALLOC_WARN_INTERVAL_environment_variable_has_bad_value___ignoring_n
call dword [0x42182c]
jmp 0x411409
mov eax, dword [0x4281e8]
test eax, eax
je 0x411bb2
mov eax, dword [0x4281e8]
mov dword [ebp - 0x38], ebp
lea ebx, [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], ebx
neg eax
and esi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
cmp eax, 0x1c
je 0x411b59
mov dword [esp], 0x423552
call fcn.00410030
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp - 0x20]
and ah, 0xfc
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x411ba6
cmp dword [ebp - 0x24], 0x1000
mov eax, 0
cmove eax, dword [ebp - 0x28]
add eax, esi
mov dword [0x4281d8], eax
jmp 0x411475
mov dword [esp], str.GC_PRINT_STATS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4112c7
mov dword [0x428a70], 1
jmp 0x4112c7
lea edx, [eax - 0x40]
xor eax, eax
and edx, 0xffffffbf
je 0x411b67
jmp 0x411b77
mov dword [esp], 0x428200
call ebx
mov eax, dword [0x428204]
sub esp, 4
mov dword [0x4281e8], eax
jmp 0x411b18
shl esi, 0xa
jmp 0x411a54
shl esi, 0x14
jmp 0x411a54
shl eax, 0x14
jmp 0x411a7b
shl eax, 0xa
jmp 0x411a7b
mov dword [esp], str.Using_GetWriteWatch___n
call fcn.004101f0
jmp 0x411511
mov dword [esp], 0x40a7f0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
sub esp, 4
test eax, eax
mov dword [0x4281d0], eax
je 0x411c59
mov eax, dword [0x428a70]
test eax, eax
je 0x411511
mov dword [esp], str.Replaced_other_UnhandledExceptionFilter_n
call fcn.004101f0
jmp 0x411511
mov dword [esp], str.Insufficient_memory_for_GC_all_nils_n
call fcn.00410340
mov dword [esp], 0
call fcn.00410030
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov dword [0x4281d0], 0xffffffff
jmp 0x411511
mov dword [esp], str.Cant_start_up:_not_enough_memory_n
jmp 0x411c3c
mov dword [esp], str.Insufficient_memory_for_black_list_n
jmp 0x411c3c