Function at 0x405075
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 4
mov eax, 0x527d3e
call fcn.00505e4b
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
xor esi, esi
inc esi
push esi
push esi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
push ebx
mov dword [edi], vtable.FEWkMZwZu.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [edi + 0x2c], eax
cmp ecx, ebx
jne 0x4050b5
call fcn.00406451
mov dword [ebp - 4], ebx
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 5
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
or dword [edi + 0x40], 0xffffffff
push 0x3c
pop eax
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], 3
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x70], ebx
call fcn.0040821b
push eax
lea ecx, [edi + 0x74]
call fcn.00404fbb
mov byte [ebp - 4], 1
xor eax, eax
mov word [edi + 0x78], ax
mov eax, dword [0x576b5c]
push 4
mov dword [ebp - 0x10], eax
pop eax
push ebx
lea esi, [edi + 0x7c]
push ebx
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi], eax
cmp ecx, ebx
je 0x4050b0
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov eax, 0x400
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
add esi, 0x1c
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x84], ebx
xor eax, eax
call fcn.004014ee
lea eax, [edi + 0x160]
mov byte [ebp - 4], 2
push eax
mov dword [edi + 0x15c], ebx
call fcn.004015b2
lea ecx, [edi + 0x7c]
mov dword [edi + 0x17c], ebx
mov dword [edi + 0x180], ebx
mov dword [edi + 0x178], ebx
mov dword [edi + 0x184], ecx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
call esi
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [edi + 0x188], eax
cmp ecx, ebx
je 0x4050b0
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 5
call esi
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [edi + 0x18c], eax
cmp ecx, ebx
je 0x4050b0
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 6
call esi
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [edi + 0x190], eax
cmp ecx, ebx
je 0x4050b0
mov byte [ebp - 4], 7
mov dword [edi + 0x194], ebx
mov dword [edi + 0x198], ebx
lea esi, [edi + 0x1d8]
mov dword [edi + 0x1a4], 2
mov dword [edi + 0x1a8], 0xa
mov dword [edi + 0x1ac], 0x80
mov dword [edi + 0x1b0], 0x200
mov dword [edi + 0x1b4], 0x1e
mov dword [edi + 0x1b8], 0x598
mov dword [edi + 0x1bc], 5
mov dword [edi + 0x1c0], 0x1000
mov dword [edi + 0x1c4], 0x1388
xor eax, eax
inc eax
mov dword [edi + 0x19c], eax
mov dword [edi + 0x1a0], eax
mov dword [edi + 0x1c8], ebx
mov dword [edi + 0x1cc], ebx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CArqSessionT_class_FEWkMZwZu__class_FEWkMZwZu_.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call fcn.004015b2
lea eax, [esi + 0x40]
push eax
mov byte [ebp - 4], 8
call fcn.004015b2
mov dword [esi + 0x58], ebx
mov ecx, vtable.CBuffer.0
mov dword [edi + 0x234], ecx
mov dword [edi + 0x240], ebx
mov dword [edi + 0x238], ebx
mov dword [edi + 0x23c], ebx
mov dword [edi + 0x244], ecx
mov dword [edi + 0x250], ebx
mov dword [edi + 0x248], ebx
mov dword [edi + 0x24c], ebx
mov dword [edi + 0x254], ecx
mov dword [edi + 0x260], ebx
mov dword [edi + 0x258], ebx
mov dword [edi + 0x25c], ebx
push ebx
lea eax, [edi + 0x18]
push eax
mov byte [ebp - 4], 0xc
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x14], eax
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 4], eax
call esi
push dword [edi + 0x1c0]
mov dword [edi + 0x264], eax
mov dword [edi + 0x14], ebx
call fcn.0040633e
mov dword [edi + 0x1c8], eax
mov dword [esp], 0x598
call fcn.0040633e
mov dword [edi + 0x70], eax
pop ecx
mov eax, edi
call fcn.00505f23
ret 4