Function at 0x4094ef
Capabilities:
Create thread
Query environment variable

Disassembly:
push 0x478
mov eax, 0x47c924
call fcn.0044ef10
mov dword [ebp - 0x480], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
lea eax, [ebp + 0x10]
push eax
lea ecx, [edi + 4]
call fcn.004071c0
xor eax, eax
mov dword [edi + 0x1c], 7
mov dword [edi + 0x18], ebx
mov word [edi + 8], ax
mov dword [edi + 0x24], ebx
mov eax, 0x409e69
mov dword [edi + 0x28], vtable.._AV__Thread_U__BindMember0_VTransportMgr_Report__P812_AEXPAX_Z_fund___fund__.0
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x38], edi
mov dword [edi + 0x3c], eax
mov byte [edi + 0x40], 1
mov al, byte [ebp + 8]
push 0x49034c
mov byte [ebp - 4], 3
push 4
pop edx
push 2
mov byte [edi + 0x4c], bl
pop esi
mov byte [edi + 0x4e], 1
mov dword [edi + 0x54], ebx
mov byte [edi + 0x58], al
mov dword [edi + 0x5c], 8
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
call fcn.0040b07c
pop ecx
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.0043fd80
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.0043fd80
add esp, 0xc
lea ebx, [ebp - 0x424]
call fcn.0040c09b
xor eax, eax
push 7
pop esi
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x424]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x430], ebx
call fcn.0040315e
mov byte [ebp - 4], 4
cmp dword [ebp - 0x42c], 8
mov eax, dword [ebp - 0x440]
jae 0x409601
lea eax, [ebp - 0x440]
push 0x103
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [ebp - 0x45c], ax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x44c], ebx
call fcn.0040315e
lea eax, [ebp - 0x478]
push 0x490374
push eax
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 5
call fcn.00403dc4
pop ecx
pop ecx
lea esi, [edi + 8]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004039b8
push ebx
push 1
lea ecx, [ebp - 0x478]
call fcn.00403211
push ebx
push 1
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 4
call fcn.00403211
cmp dword [esi + 0x14], 8
jb 0x40968f
mov esi, dword [esi]
push esi
push 0x490384
push 4
pop edx
push 2
pop esi
call fcn.0040b07c
push 0x14
call fcn.0043e996
add esp, 0xc
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x4096c2
push edi
mov ecx, eax
call fcn.0040ab7e
jmp 0x4096c4
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x50], eax
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 0x44], eax
call esi
mov dword [edi + 0x48], eax
mov al, byte [edi + 0x4c]
test al, al
jne 0x409738
push dword [edi + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [edi + 0x4c], 1
call esi
push dword [edi + 0x48]
call esi
lea esi, [edi + 0x28]
lea ecx, [ebp - 0x484]
push ecx
push ebx
lea eax, [esi + 8]
push eax
push 0x40a6f8
push ebx
push ebx
mov byte [esi + 0x18], bl
mov dword [eax], esi
mov dword [esi + 0xc], ebx
call fcn.0043f8f9
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x40972c
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0x409738
mov byte [esi + 0x18], 1
mov byte [edi + 0x4c], bl
push ebx
push 1
lea ecx, [ebp - 0x440]
call fcn.00403211
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x409756
call fcn.00407188
mov eax, edi
call fcn.0044ef93
ret 0xc