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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542460
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x5a674c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00525ee0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00525eb4
call fcn.00525eb4
cdq
mov ecx, 0x1e
idiv ecx
mov ebx, edx
mov dword [ebp - 0x1c], ebx
call fcn.00432d0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403eae
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.00432d0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403ede
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401290
lea ecx, [ebx*8 + 0x5a7e74]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402560
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 0xc]
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ecx
test eax, eax
jle 0x403f94
jmp 0x403f20
test ecx, ecx
js 0x404033
cmp ecx, dword [edi - 0xc]
jg 0x404033
mov eax, dword [ebp - 0x1c]
movsx ebx, byte [ecx + edi]
mov edi, dword [esi - 0xc]
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
sub ebx, 2
mov dword [ebp - 0x20], edi
inc edi
js 0x404033
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, edi
or eax, edx
jge 0x403f6f
push edi
lea ecx, [ebp - 0x14]
call fcn.004013a0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], bl
cmp edi, dword [esi - 8]
jg 0x404033
inc ecx
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x24]
jl 0x403f20
mov ebx, dword [ebp - 0x1c]
movsx eax, bl
push eax
push esi
lea ecx, [ebp - 0x14]
push str._s_c
push ecx
call fcn.00401700
mov esi, dword [ebp - 0x14]
add esp, 0x10
push esi
push str.PANGYA_ARG
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x78]
push ecx
push 0
push eax
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404021
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3