Function at 0x684e05b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov esi, dword [ebp + 8]
mov edi, dword [esi]
mov eax, dword [edi + 8]
mov dword [ebp - 0x70], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x684e0940
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x684e0960
mov eax, dword [eax]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x78], eax
mov eax, dword [edi + 8]
lea edx, [eax + ecx]
cmp ecx, 0x1f
jbe 0x684e0bbe
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x20], ecx
lea ecx, [eax + 0x1c]
mov dword [edi + 8], ecx
lea ecx, [eax + 0x20]
cmp edx, ecx
jb 0x684e0b9d
mov ebx, dword [eax + 0x1c]
test ebx, ebx
jne 0x684e08b0
mov dword [ebp - 0x1c], 0
xor edx, edx
mov dword [edi + 8], ecx
movzx eax, word [ebp - 0x38]
cmp ax, 5
jne 0x684e0ba9
cmp word [ebp - 0x36], 3
ja 0x684e0ba9
mov eax, dword [ebp - 0x34]
and eax, 0xffffffe0
jne 0x684e0b6c
mov dword [ebp - 0x6c], edx
mov dword [esi + 0x2c], 0
mov dword [esp], 0x74
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x6c]
test eax, eax
mov ebx, eax
je 0x684e0c32
mov eax, dword [edi + 8]
sub eax, dword [ebp - 0x70]
mov dword [ebx + 4], eax
mov eax, dword [edi]
mov dword [ebx + 0x18], 0x30
mov dword [ebx], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x28], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x34], eax
test edx, edx
je 0x684e072a
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x684e072a
mov eax, dword [edx]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x684e0a08
mov dword [edi], ebx
mov eax, dword [ebx + 4]
sub dword [edi + 0xc], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x684e07e8
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x10]
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x1c]
cmp dword [ebp - 0x2c], ecx
je 0x684e0980
cmp dword [eax + 0x30], 1
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov edx, dword fs:[0x18]
mov dword [ebp - 0x74], edx
mov edx, dword [ebp - 0x6c]
mov ecx, dword [edx]
lea edx, [ebp - 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x74]
mov edx, dword [edx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [ecx + 0xc]
sub esp, 0x14
mov edx, eax
test byte [0x684eb2d0], 8
jne 0x684e09d0
cmp edx, 1
je 0x684e09b0
cmp edx, 2
jne 0x684e07e8
test byte [0x684eb2d0], 1
jne 0x684e0b36
lea esi, [esi]
mov eax, dword [ebp - 0x60]
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x4c], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0x20]
add dword [eax + 0x30], 1
mov dword [eax + 0x28], edx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov ecx, dword [esi]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x14]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x60]
sub esp, 0xc
sub dword [eax + 0x30], 1
mov edx, dword [ebp - 0x50]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x4c]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x48]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0x44]
mov dword [eax + 0x28], edx
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x684e0910
mov eax, dword [edi + 8]
mov edx, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x70], eax
mov ebx, dword [edi]
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebp - 0x70]
sub eax, dword [ebx + 4]
mov dword [edi + 8], eax
mov eax, dword [ebx + 4]
add dword [edi + 0xc], eax
mov dword [esp], ebx
call edx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x684e08a0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [ebp - 0x5c]
mov dword [ebp - 0x1c], ebx
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
mov dword [ebp - 0x5c], ecx
lea ecx, [eax + 0x28]
mov dword [ebp - 0x58], ebx
mov dword [edi + 8], ecx
lea ecx, [eax + 0x30]
cmp edx, ecx
jb 0x684e0b9d
mov ecx, dword [eax + 0x28]
add eax, 0x2c
mov dword [edi + 8], eax
mov dword [ebp - 0x54], 0
test ecx, ecx
je 0x684e0902
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x5c]
mov dword [esp], eax
mov eax, edi
call fcn.684dc7a0
test eax, eax
js 0x684e0b20
lea edx, [ebp - 0x5c]
jmp 0x684e0664
mov edx, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x70]
cmp dword [edi + 8], eax
je 0x684e0873
mov dword [esp], eax
mov dword [ebp - 0x6c], edx
call edx
mov eax, dword [edi + 8]
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
jmp 0x684e0873
lea eax, [ebp - 0x60]
mov dword [esp], eax
call sym.combase.dll_InternalTlsAllocData
sub esp, 4
test eax, eax
jns 0x684e05de
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sym.combase.dll_InternalTlsAllocData
mov eax, dword [ebp - 0x38]
sub esp, 4
jmp 0x684e05f5
mov ecx, dword [eax + 0x20]
cmp dword [ebp - 0x28], ecx
jne 0x684e0777
mov ecx, dword [eax + 0x24]
cmp dword [ebp - 0x24], ecx
jne 0x684e0777
mov edx, dword [eax + 0x28]
cmp dword [ebp - 0x20], edx
jne 0x684e0777
mov eax, 2
jmp 0x684e0783
mov dword [esi + 0x2c], 0x80010001
mov eax, dword [edi + 8]
mov edx, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x70], eax
jmp 0x684e0873
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.IMessageFilter_HandleInComingCall_returned__ld_n
mov dword [esp + 8], str.rpc_execute_call
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 3
mov dword [ebp - 0x6c], eax
call fcn.684dbd80
mov edx, dword [ebp - 0x6c]
jmp 0x684e07ca
mov eax, dword [edi + 4]
mov dword [esp], 0x684eb260
mov dword [ebp - 0x80], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x684eb278]
lea edx, [ebx + 8]
mov dword [ebp - 0x84], edx
sub esp, 4
mov dword [ebp - 0x74], eax
cmp eax, 0x684eb278
je 0x684e0b02
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov dword [ebp + 8], esi
lea esi, [esi]
mov ebx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x6c]
xor edx, edx
mov eax, dword [ebp - 0x7c]
lea edi, [ebx + 8]
mov ebx, dword [ebx + 8]
mov dword [ebp - 0x6c], ebx
jmp 0x684e0a81
mov ecx, dword [eax]
add edx, 1
lea eax, [eax + ecx + 0x18]
cmp esi, edx
je 0x684e0b60
mov ebx, dword [ebp - 0x6c]
cmp ebx, dword [eax + 4]
jne 0x684e0a70
mov ebx, dword [eax + 8]
cmp dword [edi + 4], ebx
jne 0x684e0a70
mov ebx, dword [eax + 0xc]
cmp dword [edi + 8], ebx
jne 0x684e0a70
mov ebx, dword [eax + 0x10]
cmp dword [edi + 0xc], ebx
jne 0x684e0a70
mov dword [ebp - 0x6c], esi
cmp esi, edx
je 0x684e0bf7
mov edx, dword [eax + 0x14]
lea ecx, [eax + 0x18]
mov eax, dword [ebp - 0x74]
mov esi, dword [ebp - 0x80]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax]
mov dword [esp + 0x14], esi
mov esi, dword [ebp - 0x84]
mov dword [esp], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call dword [ebx + 0x18]
mov eax, dword [ebp - 0x74]
sub esp, 0x18
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
cmp eax, 0x684eb278
jne 0x684e0a50
mov ebx, dword [ebp - 0x88]
mov edi, dword [ebp - 0x8c]
mov esi, dword [ebp + 8]
mov dword [esp], 0x684eb260
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x684e072a
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x70]
mov edx, dword [sym.imp.ucrtbase.dll_free]
xor ebx, ebx
mov dword [edi + 8], eax
jmp 0x684e0888
mov dword [esp + 0xc], str.retry_call_later_not_implemented_n
mov dword [esp + 8], str.rpc_execute_call
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 0
call fcn.684dbd80
jmp 0x684e07e8
mov dword [ebp - 0x6c], esi
xor edx, edx
xor ecx, ecx
jmp 0x684e0ab2
test byte [0x684eb2d0], 2
je 0x684e0b9d
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.invalid_flags__lx_n
mov dword [esp + 8], str.unmarshal_ORPCTHIS
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 1
call fcn.684dbd80
mov dword [esi + 0x2c], 0x80010111
jmp 0x684e0b23
test byte [0x684eb2d0], 2
jne 0x684e0c00
mov dword [esi + 0x2c], 0x80010110
jmp 0x684e0b23
test byte [0x684eb2d0], 2
je 0x684e0b9d
mov dword [esp + 0xc], str.invalid_buffer_length_n
mov dword [esp + 8], str.unmarshal_ORPCTHIS
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 1
call fcn.684dbd80
mov dword [esi + 0x2c], 0x80010111
jmp 0x684e0b23
xor edx, edx
xor ecx, ecx
jmp 0x684e0ab2
movzx edx, word [ebp - 0x36]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.COM_version__d___d_not_supported_n
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.unmarshal_ORPCTHIS
mov dword [esp + 4], 0x684eb2d0
mov dword [esp], 1
call fcn.684dbd80
jmp 0x684e0bb2
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x2c], 0x8007000e
mov edx, dword [sym.imp.ucrtbase.dll_free]
mov dword [edi + 8], eax
jmp 0x684e0888