Function at 0x43d3cc
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x54
push 0
push 0
dec ecx
jne 0x43d3d5
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov esi, eax
xor eax, eax
push ebp
push 0x43d7de
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov edx, 0x43d7fc
mov eax, 0x80000000
call fcn.0042cfb4
cmp dword [ebp - 4], 0
je 0x43d762
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x43d453
push 0x104
lea eax, [ebp - 0x21e]
push eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
lea eax, [ebp - 4]
lea edx, [ebp - 0x21e]
mov ecx, 0x105
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x43d4a7
push 0x104
lea eax, [ebp - 0x21e]
push eax
lea eax, [ebp - 0x278]
mov edx, dword [ebp - 4]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x278]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x27c]
lea edx, [ebp - 0x21e]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x27c]
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
cmp dword [ebp - 4], 0
je 0x43d762
lea eax, [ebp - 0xc]
mov edx, esi
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0xc]
call fcn.0043c000
push 0x7fffffff
mov ebx, dword [0x59e77c]
mov ebx, dword [ebx]
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x43d83c
call ebx
test eax, eax
jle 0x43d4fc
push 0
mov ebx, dword [0x59ea04]
mov ebx, dword [ebx]
lea eax, [ebp - 0xc]
mov ecx, 0x43d858
mov edx, 0x43d868
call ebx
push 0x43d878
lea eax, [ebp - 0x284]
push eax
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 0xc]
call fcn.00406e04
mov eax, dword [ebp - 0x288]
mov cl, 0x25
mov edx, 0x58f76c
call fcn.0043d278
mov edx, dword [ebp - 0x284]
lea eax, [ebp - 0x280]
call sub.rtl120.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x280]
push 0x43d894
lea eax, [ebp - 0x290]
push eax
lea edx, [ebp - 0x294]
mov eax, dword [ebp - 0x10]
call fcn.00406e04
mov eax, dword [ebp - 0x294]
mov cl, 0x25
mov edx, 0x58f76c
call fcn.0043d278
mov edx, dword [ebp - 0x290]
lea eax, [ebp - 0x28c]
call sub.rtl120.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x28c]
push 0x43d8b4
lea eax, [ebp - 0x29c]
push eax
lea edx, [ebp - 0x2a0]
mov eax, dword [ebp - 0x14]
call fcn.00406e04
mov eax, dword [ebp - 0x2a0]
mov cl, 0x25
mov edx, 0x58f76c
call fcn.0043d278
mov edx, dword [ebp - 0x29c]
lea eax, [ebp - 0x298]
call sub.rtl120.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x298]
lea eax, [ebp - 8]
mov edx, 6
call sub.rtl120.bpl__System__UStrCatN_qqrv
push 0
mov ebx, dword [0x59ea04]
mov ebx, dword [ebx]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, 0x43d8d0
call ebx
test al, al
jne 0x43d631
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
mov ebx, eax
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
cmp word [eax + ebx*2 - 2], 0x20
je 0x43d626
push dword [ebp - 4]
push 0x43d8e4
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
jmp 0x43d631
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x43d6a0
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
cmp eax, 0x7ffe
jle 0x43d6a0
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
cmp word [eax + 0xfffa], 0x25
jne 0x43d672
lea eax, [ebp - 4]
mov edx, 0x7ffd
call sub.rtl120.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
jmp 0x43d6a0
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
cmp word [eax + 0xfff8], 0x25
jne 0x43d693
lea eax, [ebp - 4]
mov edx, 0x7ffc
call sub.rtl120.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
jmp 0x43d6a0
lea eax, [ebp - 4]
mov edx, 0x7ffe
call sub.rtl120.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
lea eax, [ebp - 0x264]
mov edx, 0x44
call fcn.0040288c
mov dword [ebp - 0x264], 0x44
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x43d6f8
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x43d73e
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2a4]
mov edx, dword [ebp - 4]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x2a4]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x43d762
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x43d752
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x43d762
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d7e5
lea eax, [ebp - 0x2a4]
mov edx, 3
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x298]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x294]
mov edx, 2
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x28c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x288]
mov edx, 2
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x280]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x27c]
mov edx, 2
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret