Function at 0x43c854
Capabilities:
Create thread
Get memory capacity
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x475280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x9c], edx
xor edx, edx
mov dword [ebp - 0x78], esi
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0xa4], edx
lea edi, [ebp - 0x24]
mov dword [ebp - 0x70], edx
rep stosd dword es:[edi], eax
mov ebx, edx
mov ecx, esi
mov edx, 0x80000
call fcn.0042f3ae
test eax, eax
je 0x43c8a6
xor esi, esi
inc esi
jmp 0x43cf28
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x43c8f1
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
shrd edx, eax, 0xa
shrd edi, ecx, 0xa
shr eax, 0xa
shr ecx, 0xa
test eax, eax
jne 0x43c8e1
cmp edx, 0x1f4000
jb 0x43c945
xor eax, eax
cmp ecx, eax
ja 0x43c8f1
jb 0x43c947
cmp edi, 0x100000
jbe 0x43c947
push 0x10
pop edi
push edi
lea eax, [ebp - 0x24]
push eax
push 0x407a84
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x43c96c
cmp eax, edi
ja 0x43c96c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x24]
push 0x405d54
push eax
call dword [sym.imp.msvcrt.dll_swscanf_s]
add esp, 0xc
test eax, eax
jle 0x43c96c
cmp dword [ebp - 0x70], ebx
jne 0x43c96c
push 0xfb8
xor edi, edi
inc edi
xor eax, eax
push 0x4079c4
push edi
push 0x407ac0
jmp 0x43c95a
xor eax, eax
push 0xfac
xor edi, edi
push 0x4079c4
inc edi
push edi
push 0x4079f8
push eax
push dword [ebp - 0x78]
mov esi, edi
push 3
call fcn.00434d80
jmp 0x43cf28
push 0xfbd
push 0x4079c4
xor eax, eax
push eax
push 0x407b60
push eax
push esi
push 3
call fcn.00434d80
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x94], ebx
test ebx, ebx
jne 0x43c9b2
push 0xe
call fcn.00411710
mov esi, eax
jmp 0x43cf28
push 8
push 8
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 2
pop ecx
mov dword [ebx + 4], eax
mov dword [eax], ecx
lea eax, [ebp - 0x24]
push edi
push eax
push 0x407bc8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x43ca0a
cmp eax, edi
ja 0x43ca0a
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x24]
push 0x405d54
push eax
call dword [sym.imp.msvcrt.dll_swscanf_s]
add esp, 0xc
test eax, eax
jle 0x43ca0a
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 0x70]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
push 2
pop ecx
push edi
mov dword [eax + 4], ecx
lea eax, [ebp - 0x24]
push eax
push 0x407c04
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x43ca51
cmp eax, edi
ja 0x43ca51
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x24]
push 0x405d54
push eax
call dword [sym.imp.msvcrt.dll_swscanf_s]
add esp, 0xc
test eax, eax
jle 0x43ca51
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 0x70]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
xor edi, edi
inc edi
cmp dword [eax + 4], 8
ja 0x43ca62
cmp dword [eax + 4], edi
jae 0x43ca6d
push 2
pop ecx
mov dword [eax + 4], ecx
mov eax, dword [ebx + 4]
jmp 0x43ca70
push 2
pop ecx
cmp dword [eax], 4
ja 0x43ca79
cmp dword [eax], edi
jae 0x43ca7b
mov dword [eax], ecx
mov ecx, esi
call fcn.0042fd0f
xor ecx, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x90], ecx
mov ecx, eax
call fcn.00430a21
test eax, eax
je 0x43cab3
mov esi, dword [ebp - 0x90]
mov ecx, eax
inc esi
call fcn.00430a7b
test eax, eax
jne 0x43ca9e
mov dword [ebp - 0x90], esi
mov esi, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x90]
shl eax, 2
push eax
push 8
mov dword [ebp - 0xac], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x74], eax
call fcn.00430a21
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x43cd6c
mov ebx, eax
mov ecx, ebx
call fcn.0042fecf
test eax, eax
je 0x43cd01
mov ecx, ebx
call fcn.004301ef
cmp ax, di
jbe 0x43ccf5
call fcn.004301dc
cmp ax, di
jne 0x43ccf5
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + eax*4], ebx
inc eax
mov ecx, ebx
mov dword [ebp - 0x74], eax
call fcn.004301ef
movzx eax, ax
mov ecx, esi
push 2
mov dword [ebp - 0x88], eax
pop eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], edi
call fcn.00430a21
mov edx, eax
push 2
pop eax
mov dword [ebp - 0x98], edx
cmp ax, word [ebp - 0x88]
ja 0x43cd0e
mov eax, ebx
lea ecx, [ebx + 0x30]
neg eax
sbb eax, eax
and eax, ecx
mov dword [ebp - 0xa0], eax
mov ecx, edx
lea eax, [edx + 0x30]
neg ecx
sbb ecx, ecx
and ecx, eax
xor eax, eax
mov dword [ebp - 0x6c], eax
mov esi, dword [ebp - 0x6c]
mov edx, dword [ebp - 0xa0]
mov eax, dword [ecx + eax*4]
cmp eax, dword [edx + esi*4]
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x98]
jne 0x43cbf3
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp eax, 4
jne 0x43cb8d
mov ecx, edx
call fcn.004301ef
cmp ax, word [ebp - 0x88]
jne 0x43cbf3
call fcn.004301dc
cmp ax, word [ebp - 0x7c]
jne 0x43cbf3
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edx
inc eax
cmp dword [ebp - 0x8c], 0
mov dword [ebp - 0x74], eax
jne 0x43ccb0
mov dword [ebp - 0x8c], edi
jmp 0x43ccb0
mov eax, dword [ebp - 0x90]
cmp dword [ebp - 0x84], eax
jbe 0x43ccbb
mov ecx, ebx
call fcn.0042fdeb
mov edx, eax
mov dword [ebp - 0x84], eax
lea eax, [edx + 2]
mov cx, word [edx]
add edx, 2
cmp cx, word [ebp - 0xa4]
jne 0x43cc17
sub edx, eax
sar edx, 1
lea eax, [edx + 0x80]
mov dword [ebp - 0xa8], eax
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebp - 0x6c], edx
test edx, edx
je 0x43ccaa
push dword [ebp - 0x84]
mov eax, dword [ebp - 0x7c]
movzx ecx, ax
mov eax, dword [ebp - 0x88]
push ecx
movzx ecx, ax
push ecx
push 0x407c40
push dword [ebp - 0xa8]
push edx
call fcn.0042190c
add esp, 0x18
xor eax, eax
push 0x104d
push 0x4079c4
push eax
push dword [ebp - 0x6c]
push eax
push esi
push 2
pop eax
push eax
call fcn.00434d80
push dword [ebp - 0x6c]
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x98]
xor eax, eax
inc dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov ecx, edx
call fcn.00430a7b
mov edx, eax
mov dword [ebp - 0x98], edx
test edx, edx
jne 0x43ccdd
mov ecx, esi
call fcn.00430a21
mov edx, eax
mov dword [ebp - 0x98], eax
inc dword [ebp - 0x84]
mov eax, dword [ebp - 0x88]
cmp word [ebp - 0x7c], ax
jbe 0x43cb7d
jmp 0x43cd0e
mov ecx, ebx
call fcn.004301ef
cmp ax, di
jne 0x43cd0e
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + eax*4], ebx
inc eax
mov dword [ebp - 0x74], eax
mov ecx, ebx
call fcn.00430a7b
mov ebx, eax
test ebx, ebx
jne 0x43caf7
mov ebx, dword [ebp - 0x94]
cmp dword [ebp - 0x8c], eax
je 0x43cd6c
cmp dword [ebp - 0x90], edi
jbe 0x43cd58
mov ebx, dword [ebp - 0x80]
mov esi, edi
mov edx, dword [ebx + esi*4]
mov ecx, dword [ebx + esi*4 - 4]
call fcn.00430aac
inc esi
cmp esi, dword [ebp - 0x90]
jb 0x43cd3a
mov ebx, dword [ebp - 0x94]
mov esi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x80]
xor edx, edx
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + eax - 4]
call fcn.00430aac
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x43cd84
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x6c], eax
call fcn.00430a21
mov esi, eax
mov dword [ebp - 0x88], esi
jmp 0x43ce01
mov ecx, esi
call fcn.0042fecf
test eax, eax
je 0x43cdf2
xor eax, eax
lea edx, [ebp - 0x94]
mov ecx, esi
mov dword [ebp - 0x94], eax
call fcn.0043c11a
mov esi, eax
test esi, esi
js 0x43cf28
cmp dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x94]
jne 0x43cddf
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x43cde9
mov dword [ecx + 8], eax
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0x6c], eax
mov ecx, esi
call fcn.00430a7b
mov esi, eax
mov dword [ebp - 0x88], eax
test esi, esi
jne 0x43cda0
mov eax, dword [ebp - 0x8c]
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x28], eax
or edx, 0xffffffff
lea eax, [ebx + 0x1c]
push eax
push 0x43bf70
call fcn.0043f303
mov esi, eax
test esi, esi
js 0x43cf28
xor esi, esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x30], eax
test eax, eax
jne 0x43ce65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x43ce5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x43c9a6
mov esi, 0x80004005
jmp 0x43cf28
ret
add byte [eax], al
invalid
mov eax, dword [ebx + 4]
push esi
push 0x7fffffff
push dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x43ce3f
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x9c]
mov eax, dword [eax]
cmp eax, ecx
jb 0x43ce90
mov eax, ecx
lea ecx, [ebx + 8]
push ecx
mov ecx, dword [ebp - 0x78]
push 0xa
push eax
push 2
pop eax
mov edx, eax
call fcn.004443aa
mov esi, eax
test esi, esi
js 0x43cf28
mov ecx, dword [ebp - 0x78]
lea eax, [ebx + 0xc]
push eax
push 0xa
push edi
xor edx, edx
call fcn.004443aa
mov esi, eax
test esi, esi
js 0x43cf28
cmp dword [ebp - 0x9c], edi
jbe 0x43ceef
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
mov eax, dword [ebp - 0x9c]
dec eax
push eax
mov eax, dword [ebx + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
jmp 0x43cef1
xor edi, edi
push edi
push edi
push ebx
push 0x43c670
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x43ce3f
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x43cf26
mov ecx, eax
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x43cf13
test ecx, ecx
je 0x43cf26
mov dword [ecx + 0xf0], ebx
mov ebx, edi
mov ecx, ebx
call fcn.0043c81d
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471d10
leave
ret