Function at 0x40b9ae
Capabilities:
Create thread
Query environment variable

Disassembly:
push 0x478
mov eax, 0x47eee9
call fcn.004514b0
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.004096e3
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, 0x40c328
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 str.TransportMgr_create
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.0040d53c
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.00442320
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.00442320
add esp, 0xc
lea ebx, [ebp - 0x424]
call fcn.0040e55b
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.00405689
mov byte [ebp - 4], 4
cmp dword [ebp - 0x42c], 8
mov eax, dword [ebp - 0x440]
jae 0x40bac0
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.00405689
lea eax, [ebp - 0x478]
push str.rpt.dat
push eax
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 5
call fcn.004062cd
pop ecx
pop ecx
lea esi, [edi + 8]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00405e9a
push ebx
push 1
lea ecx, [ebp - 0x478]
call fcn.0040573c
push ebx
push 1
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 4
call fcn.0040573c
cmp dword [esi + 0x14], 8
jb 0x40bb4e
mov esi, dword [esi]
push esi
push str.TransportMgr_CacheFileName_s
push 4
pop edx
push 2
pop esi
call fcn.0040d53c
push 0x14
call fcn.00440f36
add esp, 0xc
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x40bb81
push edi
mov ecx, eax
call fcn.0040d03e
jmp 0x40bb83
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 0x40bbf7
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 0x40cbb7
push ebx
push ebx
mov byte [esi + 0x18], bl
mov dword [eax], esi
mov dword [esi + 0xc], ebx
call fcn.00441e99
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x40bbeb
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0x40bbf7
mov byte [esi + 0x18], 1
mov byte [edi + 0x4c], bl
push ebx
push 1
lea ecx, [ebp - 0x440]
call fcn.0040573c
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x40bc15
call fcn.004096ab
mov eax, edi
call fcn.00451533
ret 0xc