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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x10029170]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x2c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 8
mov dword [esp + 0x20], eax
lea edi, [esp + 0x24]
mov eax, dword [ebp + 0x28]
pop ecx
mov dword [esp + 0x14], eax
xor eax, eax
push 0x48
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x20], edx
push eax
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
xor eax, eax
mov byte [esp + 0x1b], 1
add esp, 0xc
mov dword [esp + 0x10], eax
mov esi, eax
cmp ebx, 0xffffffff
je 0x10020a8a
test ebx, ebx
je 0x10020a8a
cmp byte [ebx + 4], al
je 0x10020a8a
cmp dword [ebp + 0x30], 0x1c
jb 0x10020a8a
cmp dword [ebp + 0xc], eax
jne 0x10020897
cmp dword [ebp + 0x10], eax
jne 0x1002086b
push eax
push eax
push eax
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_CreateEventW]
mov esi, eax
test esi, esi
jne 0x10020864
push 8
jmp 0x10020a8c
mov byte [esp + 0xf], 0
jmp 0x10020897
push 2
push eax
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentThread]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
je 0x10020a92
push 0x24
pop ecx
call fcn.1000563a
mov edi, eax
test edi, edi
jne 0x100208c3
test esi, esi
je 0x100208b0
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [esp + 0x10], 0
je 0x1002085d
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1002085d
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
inc dword [ebx + 0x24]
lea ecx, [ebx + 0x28]
mov edx, dword [ecx + 4]
lea eax, [edi + 0x1c]
cmp dword [edx], ecx
je 0x100208e2
push 3
pop ecx
int 0x29
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ecx + 4], eax
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10020901
mov dword [edi], esi
jmp 0x10020903
mov dword [edi], eax
mov eax, dword [esp + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
movzx eax, word [ebp + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], 0x1c
test edx, edx
je 0x100209a1
mov al, byte [edx]
mov cl, byte [edx + 2]
mov byte [esp + 0x74], al
mov al, cl
shr al, 1
and cl, 1
and al, 1
mov byte [esp + 0x75], cl
and dword [esp + 0x64], 0
mov byte [esp + 0x78], al
movzx eax, byte [edx + 3]
mov word [esp + 0x68], ax
mov eax, dword [edx + 4]
mov dword [esp + 0x60], eax
jmp 0x100209ab
mov byte [esp + 0x74], 0xff
mov byte [esp + 0x78], 0
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100209c7
mov dword [esp + 0x7c], eax
push 0x48
lea eax, [esp + 0x44]
push eax
push 0x20
lea eax, [esp + 0x2c]
push eax
push 4
push dword [ebx + 8]
push 6
push 1
call dword [sym.imp.NSI.dll_NsiSetAllParameters]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10020a28
cmp byte [esp + 0xf], al
je 0x100209fc
push 0x3e5
jmp 0x10020a8c
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov edx, dword [esp + 0x18]
movzx ecx, byte [edx + 0x17]
movzx eax, word [edx + 0xc]
add ecx, 0x1c
add eax, ecx
push eax
push edx
call sym.IPHLPAPI.DLL_IcmpParseReplies
jmp 0x10020a94
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
dec dword [ebx + 0x24]
lea eax, [edi + 0x1c]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
cmp dword [edx + 4], eax
jne 0x100208dd
cmp dword [ecx], eax
jne 0x100208dd
lea eax, [ebx + 0xc]
mov dword [ecx], edx
push eax
mov dword [edx + 4], ecx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
test esi, esi
je 0x10020a68
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
cmp dword [edi + 4], 0
je 0x10020a81
push dword [edi + 4]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, edi
call fcn.1000bd1b
jmp 0x10020a92
push 0x57
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012ae0
mov esp, ebp
pop ebp
ret 0x30