Function at 0x101972f
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x11a0
call fcn.01037450
push esi
push edi
xor edi, edi
mov esi, ecx
lea ecx, [ebp - 1]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
call fcn.010233a3
push 0x10378b4
push 0x10378a8
mov dword [esi], 0x3e5
call dword [sym.imp.ADVAPI32.dll_RegisterWaitChainCOMCallback]
push 0x101970d
push 1
call dword [sym.imp.ADVAPI32.dll_OpenThreadWaitChainSession]
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x10197c3
mov eax, dword [section..data]
cmp eax, section..data
je 0x1019cef
test byte [eax + 0x1c], 1
je 0x1019cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x1003c2c
push 0x44
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1019cef
cmp dword [ebp + 0x10], edi
je 0x10197cf
mov dword [ebp - 8], 3
push ebx
lea ecx, [ebp - 1]
call fcn.010233ab
mov ebx, 0x1003c2c
mov edi, section..data
test eax, eax
jne 0x10197ec
or dword [ebp - 8], 8
jmp 0x1019809
mov eax, dword [section..data]
cmp eax, edi
je 0x1019809
test byte [eax + 0x1c], 4
je 0x1019809
push ebx
push 0x45
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x101984c
mov eax, dword [section..data]
cmp eax, edi
je 0x1019ce5
test byte [eax + 0x1c], 1
je 0x1019ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x46
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1019ce5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x11a0]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetThreadWaitChain]
test eax, eax
jne 0x101989f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x101989f
mov eax, dword [section..data]
cmp eax, edi
je 0x1019ce5
test byte [eax + 0x1c], 1
je 0x1019ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x47
jmp 0x1019837
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x10198ef
mov dword [esi], 0x4c7
mov eax, dword [section..data]
cmp eax, edi
je 0x1019ce5
test byte [eax + 0x1c], 4
je 0x1019ce5
push ebx
push 0x48
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1019ce5
cmp eax, 1
je 0x1019923
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [section..data]
cmp ecx, edi
je 0x1019ce5
test byte [ecx + 0x1c], 1
je 0x1019ce5
push eax
push ebx
push 0x49
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x1019842
mov ecx, dword [esi + 0x1190]
cmp ecx, 1
jne 0x101994a
mov eax, dword [section..data]
cmp eax, edi
je 0x1019ce5
test byte [eax + 0x1c], 4
je 0x1019ce5
push ebx
push 0x4a
jmp 0x10198df
mov eax, dword [section..data]
cmp eax, edi
je 0x1019968
test byte [eax + 0x1c], 4
je 0x1019968
push ecx
push ebx
push 0x4b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
and dword [ebp + 0x10], 0
cmp dword [esi + 0x1190], 0
jbe 0x1019ce5
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 0x130]
mov dword [ebp + 0xc], eax
lea edx, [ecx + 1]
mov dword [ebp - 8], edx
cmp edx, dword [esi + 0x1190]
jae 0x10199a7
cmp dword [eax - 8], 8
jne 0x10199a7
mov edx, dword [ebp + 8]
cmp dword [eax], edx
je 0x10199a7
mov dword [ebp - 0xc], 1
mov edx, dword [eax - 0x120]
dec edx
cmp edx, 0xb
ja case.0x10199b7.10
jmp dword [edx*4 + 0x1019d13]
mov ecx, dword [eax - 0x118]
cmp ecx, dword [ebp + 8]
je 0x1019a4f
mov dword [esi + 0x1194], ecx
mov ecx, dword [eax - 0x11c]
cmp ecx, 4
je 0x1019a15
cmp ecx, 5
je 0x1019a15
mov ecx, dword [eax - 0x114]
mov dword [esi + 0x1198], ecx
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push ecx
push dword [esi + 0x1194]
push dword [ebp + 0x10]
push ebx
push 0x4c
jmp 0x1019a84
and dword [esi + 0x1198], 0
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [esi + 0x1194]
push dword [ebp + 0x10]
push ebx
push 0x4d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101726e
jmp case.0x10199b7.10
mov ecx, dword [eax - 0x114]
test ecx, ecx
je case.0x10199b7.10
mov dword [esi + 0x119c], ecx
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push ecx
push dword [ebp + 8]
push dword [ebp + 0x10]
push ebx
push 0x4e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01018d0b
jmp case.0x10199b7.10
or dword [esi + 0x11a8], 1
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x4f
jmp 0x1019cb9
mov eax, dword [ebp + 0xc]
or dword [esi + 0x11a8], 0x80
add eax, 0xfffffee8
push eax
mov ecx, esi
call fcn.01018fdc
test eax, eax
je 0x1019ae4
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x11a0], eax
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffee8
push ecx
push dword [ebp + 0x10]
push ebx
push 0x50
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008b5a
jmp case.0x10199b7.10
or dword [esi + 0x11a8], 0x40000
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x51
jmp 0x1019cb9
or dword [esi + 0x11a8], 0x80000
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x52
jmp 0x1019cb9
cmp dword [ebp - 0xc], 0
je 0x1019ba2
or dword [esi + 0x11a8], 0x10
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x53
jmp 0x1019cb9
or dword [esi + 0x11a8], 2
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x54
jmp 0x1019cb9
cmp dword [ebp - 0xc], 0
je 0x1019bfa
or dword [esi + 0x11a8], 0x20
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x55
jmp 0x1019cb9
or dword [esi + 0x11a8], 4
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x56
jmp 0x1019cb9
cmp dword [ebp - 0xc], 0
je 0x1019c51
or dword [esi + 0x11a8], 0x40
mov dword [esi + 0x11a4], ecx
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x57
jmp 0x1019cb9
or dword [esi + 0x11a8], 8
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x58
jmp 0x1019cb9
or dword [esi + 0x11a8], 0x10000
or dword [esi + 0x11a8], 0x4000
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x59
jmp 0x1019cb9
or dword [esi + 0x11a8], 0x8000
mov eax, dword [section..data]
cmp eax, edi
je case.0x10199b7.10
test byte [eax + 0x1c], 4
je case.0x10199b7.10
push dword [ebp + 0x10]
push ebx
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
and dword [ebp - 0xc], 0
add eax, 0x118
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0xc], eax
cmp ecx, dword [esi + 0x1190]
jb 0x1019985
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseThreadWaitChainSession]
pop ebx
mov esi, dword [esi]
test esi, esi
jle 0x1019d01
and esi, 0xffff
or esi, 0x80070000
lea ecx, [ebp - 1]
call fcn.01022380
pop edi
mov eax, esi
pop esi
leave
ret 0xc