Function at 0x403250
Capabilities:
Create thread
Read file via mapping
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4037a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x403287
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40329c
mov esi, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0
mov dword [esi], 0x404fc0
mov dword [esi + 4], edx
xor ebx, ebx
mov dword [esi + 0x24], 1
mov dword [ebp - 0xa4], ebx
mov word [ebp - 0xb4], bx
mov dword [ebp - 0xa0], 7
lea ebx, [esi + 8]
mov eax, dword [ebx + 0x18]
cmp eax, 8
jb 0x4032dc
mov edx, dword [ebx + 4]
jmp 0x4032df
lea edx, [esi + 0xc]
lea eax, [ebp - 0xb8]
add esp, 0xfffffff4
mov dword [esp + 4], str.Global_sEventConnect
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.004037e0
add esp, 0xc
mov eax, dword [ebp - 0xa0]
lea edi, [ebp - 0xb4]
cmp eax, 8
cmovae edi, dword [ebp - 0xb4]
pxor xmm0, xmm0
movq qword [ebp - 0x60], xmm0
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x60]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea edx, [ebp - 0x60]
xor eax, eax
push eax
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0xc
lea eax, [ebp - 0x60]
xor edx, edx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x28]
push edi
push edx
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], 1
mov dword [ebp - 0xbc], 7
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [ebp - 0xc0], eax
mov word [ebp - 0xd0], ax
mov edx, dword [ebx + 0x18]
cmp edx, 8
jb 0x40339d
mov edx, dword [ebx + 4]
jmp 0x4033a0
lea edx, [esi + 0xc]
lea eax, [ebp - 0xd4]
add esp, 0xfffffff4
mov dword [esp + 4], str.Global_sEventCall
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.004037e0
add esp, 0xc
mov eax, dword [ebp - 0xbc]
lea edi, [ebp - 0xd0]
cmp eax, 8
cmovae edi, dword [ebp - 0xd0]
pxor xmm0, xmm0
movq qword [ebp - 0x74], xmm0
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x64], 0
lea eax, [ebp - 0x74]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea edx, [ebp - 0x74]
xor eax, eax
push eax
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 0xc
lea eax, [ebp - 0x74]
xor edx, edx
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x34]
push edi
push edx
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], 2
mov dword [ebp - 0xd8], 7
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [ebp - 0xdc], eax
mov word [ebp - 0xec], ax
mov edx, dword [ebx + 0x18]
cmp edx, 8
jb 0x40345e
mov edx, dword [ebx + 4]
jmp 0x403461
lea edx, [esi + 0xc]
lea eax, [ebp - 0xf0]
add esp, 0xfffffff4
mov dword [esp + 4], str.Global_sEventReturn
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.004037e0
add esp, 0xc
mov eax, dword [ebp - 0xd8]
lea ebx, [ebp - 0xec]
cmp eax, 8
cmovae ebx, dword [ebp - 0xec]
pxor xmm0, xmm0
movq qword [ebp - 0x9c], xmm0
movq qword [ebp - 0x94], xmm0
mov dword [ebp - 0x8c], 0
lea eax, [ebp - 0x9c]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea edx, [ebp - 0x9c]
xor eax, eax
push eax
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], 0xc
lea eax, [ebp - 0x9c]
xor edx, edx
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x4c]
push ebx
push edx
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x38], eax
pxor xmm0, xmm0
movq qword [ebp - 0x88], xmm0
movq qword [ebp - 0x80], xmm0
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x88]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea edx, [ebp - 0x88]
xor eax, eax
push eax
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], 0xc
lea eax, [ebp - 0x88]
xor edx, edx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x40]
push edx
push 0x80000
push edx
push 4
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x3c], eax
xor edx, edx
push edx
push edx
push edx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x40], eax
test eax, eax
je 0x4036c9
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
add esp, 0xffffffe8
mov dword [esp + 8], 0x409bf0
xor eax, eax
mov dword [esp], eax
mov dword [esp + 0x10], 4
mov dword [esp + 4], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
call fcn.0040d265
add esp, 0x18
push eax
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xd8]
cmp eax, 8
jae 0x4036b8
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0xd8], 7
xor eax, eax
cmp edx, 8
mov dword [ebp - 0xdc], eax
mov word [ebp - 0xec], ax
jae 0x4036a7
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xbc], 7
xor eax, eax
cmp edx, 8
mov dword [ebp - 0xc0], eax
mov word [ebp - 0xd0], ax
jae 0x403699
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
xor edx, edx
mov eax, 1
mov dword [ebp - 0xa0], 7
mov dword [ebp - 0xa4], edx
mov word [ebp - 0xb4], dx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0xb4]
call fcn.0040c587
pop ecx
jmp 0x40363e
push dword [ebp - 0xd0]
call fcn.0040c587
pop ecx
jmp 0x403613
push dword [ebp - 0xec]
call fcn.0040c587
pop ecx
jmp 0x4035e4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xd8]
cmp eax, 8
jae 0x403785
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0xd8], 7
xor eax, eax
cmp edx, 8
mov dword [ebp - 0xdc], eax
mov word [ebp - 0xec], ax
jae 0x403777
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xbc], 7
xor eax, eax
cmp edx, 8
mov dword [ebp - 0xc0], eax
mov word [ebp - 0xd0], ax
jae 0x403769
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0xa4], edx
xor eax, eax
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], dx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0xb4]
call fcn.0040c587
pop ecx
jmp 0x403735
push dword [ebp - 0xd0]
call fcn.0040c587
pop ecx
jmp 0x40370a
push dword [ebp - 0xec]
call fcn.0040c587
pop ecx
jmp 0x4036df