Function at 0x4109a0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xcc
mov edx, dword [0x4287b4]
test edx, edx
jne 0x4109d0
mov eax, dword [0x4280e4]
test eax, eax
je 0x410a10
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x42879c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4280e4]
sub esp, 4
test eax, eax
je 0x410a10
mov edx, dword [0x4287b4]
test edx, edx
je 0x4109bd
mov dword [esp], 0x42879c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x428798]
mov eax, dword [0x4281a0]
mov dword [0x4280e4], 1
test eax, eax
mov dword [esp + 0x18], eax
jne 0x410a7a
mov eax, dword [0x4287b4]
test eax, eax
jne 0x410a58
mov ecx, dword [0x4287b4]
test ecx, ecx
jne 0x410c8c
mov dword [0x4280e4], 0
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x42879c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x410a35
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], eax
jmp 0x410ac8
lea ebx, [eax*4]
lea eax, [esp + 0x20]
mov dword [esp + 4], 0x428100
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0x428100
mov dword [0x4281a0], 0
call sub.msvcrt.dll_memset
mov eax, dword [0x4287b4]
test eax, eax
jne 0x410a58
mov eax, dword [esp + 0x18]
mov dword [esp], str.Found__u_leaked_objects:_n
xor esi, esi
mov dword [esp + 4], eax
call fcn.00410340
jmp 0x410b8a
mov ecx, dword [edi + 0x10]
movzx edx, byte [edi + 0xc]
add dword [0x428ab0], ecx
mov ebp, ecx
shr ebp, 3
cmp edx, 2
je 0x410be0
cmp ebp, 0x100
ja 0x410bf2
lea eax, [edx + edx*4]
mov eax, dword [eax*4 + 0x41f030]
test eax, eax
je 0x410b50
cmp ecx, 4
jbe 0x410b50
sub ecx, 4
lea eax, [ebx + 4]
cmp ecx, 4
jae 0x410c20
test ecx, ecx
je 0x410b50
test cl, 2
mov byte [ebx + 4], 0
jne 0x410c80
lea esi, [esi]
lea eax, [edx + edx*4]
mov eax, dword [eax*4 + 0x41f020]
lea eax, [eax + ebp*4]
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
mov ebx, dword [0x4287b4]
test ebx, ebx
je 0x410b7d
mov dword [esp], 0x42879c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esi, 1
cmp dword [esp + 0x18], esi
jbe 0x410c50
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + esi*4]
mov dword [esp], ebx
call fcn.00414b20
test ebx, ebx
je 0x410b7d
mov eax, ebx
shr eax, 0x16
mov edx, dword [eax*4 + 0x444474]
mov eax, ebx
shr eax, 0xc
and eax, 0x3ff
mov edi, dword [edx + eax*4]
mov eax, dword [0x4287b4]
test eax, eax
je 0x410af0
mov dword [esp], 0x42879c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
jmp 0x410af0
sub dword [0x426038], ecx
cmp ebp, 0x100
jbe 0x410b17
cmp ecx, 0x1000
jbe 0x410c0c
add ecx, 0xfff
and ecx, 0xfffff000
sub dword [0x428a94], ecx
mov eax, ebx
and eax, 0xfffff000
call fcn.00414cb0
jmp 0x410b63
lea edi, [ebx + 8]
mov dword [ebx + 4], 0
mov dword [eax + ecx - 4], 0
and edi, 0xfffffffc
sub eax, edi
add ecx, eax
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x410b50
mov dword [esp], str.GC_ABORT_ON_LEAK
call sub.msvcrt.dll_getenv
test eax, eax
je 0x410a35
mov dword [esp], str.Leaked_or_smashed_objects_encountered
call fcn.00410030
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x410a35
xor edi, edi
mov word [eax + ecx - 2], di
jmp 0x410b50
mov dword [esp], 0x42879c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x4280e4], 0
sub esp, 4
jmp 0x4109e9