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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
mov eax, dword [0x5b89bae4]
xor eax, esp
mov dword [esp + 0x180], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [0x5b89602c]
mov edi, 0x5b89602c
cmp eax, edi
je 0x5b81e0ea
test byte [eax + 0x1c], 4
je 0x5b81e0ea
push dword [eax + 0x14]
mov edx, 0x5b80b610
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.5b81ae17
mov eax, dword [0x5b89602c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x10], esi
test ebx, ebx
je 0x5b81e543
test ecx, ecx
je 0x5b81e543
cmp dword [ebx], 1
je 0x5b81e12c
cmp eax, edi
je 0x5b81e122
test byte [eax + 0x1c], 1
je 0x5b81e122
push dword [eax + 0x14]
mov edx, 0x5b80b610
push dword [eax + 0x10]
push 0xc
pop ecx
call fcn.5b81ae17
mov ebx, 0x80070006
jmp 0x5b81e565
cmp edx, 3
ja 0x5b81e52f
test edx, edx
je 0x5b81e52f
push 8
call sym.mpclient.dll_MpAllocMemory
mov edi, eax
mov dword [esp + 0x40], edi
test edi, edi
jne 0x5b81e185
mov ebx, 0x8007000e
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b81e4fe
test byte [eax + 0x1c], 1
je 0x5b81e4fe
push dword [eax + 0x14]
mov edx, 0x5b80b610
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.5b81ae17
jmp 0x5b81e4fe
lea ecx, [esp + 0x10]
lfence
call fcn.5b866baa
test eax, eax
jns 0x5b81e1c0
mov ecx, dword [0x5b89602c]
cmp ecx, 0x5b89602c
je 0x5b81e1c0
test byte [ecx + 0x1c], 2
je 0x5b81e1c0
push eax
lfence
push dword [ecx + 0x14]
mov edx, 0x5b80b610
push dword [ecx + 0x10]
push 0xf
pop ecx
call fcn.5b81ae33
call fcn.5b8672b3
test eax, eax
jns 0x5b81e1f4
mov ecx, dword [0x5b89602c]
cmp ecx, 0x5b89602c
je 0x5b81e1f4
test byte [ecx + 0x1c], 2
je 0x5b81e1f4
push eax
lfence
push dword [ecx + 0x14]
mov edx, 0x5b80b610
push dword [ecx + 0x10]
push 0x10
pop ecx
call fcn.5b81ae33
and dword [edi], esi
lea eax, [edi + 4]
and dword [edi + 4], esi
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
push eax
push dword [ebp + 0x14]
push dword [esp + 0x20]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5b81e8d7
mov esi, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [0x5b89c96c]
test eax, eax
je 0x5b81e4ba
push eax
lea ecx, [esp + 0x48]
call fcn.5b81f568
cmp byte [esp + 0x4c], 0
je 0x5b81e4a9
cmp dword [0x5b8960c0], 5
jbe 0x5b81e4a4
push ecx
push ecx
call fcn.5b81a785
test al, al
je 0x5b81e4a4
mov edi, dword [0x5b89c968]
lea eax, [esp + 0x50]
xor ecx, ecx
mov dword [esp + 0x50], 0x2000000
mov dword [esp + 0x54], ecx
mov dword [esp + 0x7c], ecx
mov edx, dword [edi + 4]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], 8
call fcn.5b81a749
mov edx, dword [edi + 8]
lea ecx, [esp + 0x98]
call fcn.5b81a749
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0xa8]
call fcn.5b81a749
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xb8]
call fcn.5b81a749
movzx eax, byte [edi + 0x14]
xor edx, edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd4], edx
push 4
pop ecx
mov dword [esp + 0xd0], ecx
movzx eax, byte [edi + 0x15]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], edx
movzx eax, byte [edi + 0x16]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf4], edx
movzx eax, byte [edi + 0x17]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], edx
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], edx
movzx eax, byte [edi + 0x18]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], edx
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], edx
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], edx
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], edx
mov eax, dword [edi + 0x20]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x12c], edx
mov dword [esp + 0x130], ecx
lea ecx, [esp + 0x138]
mov dword [esp + 0x134], edx
mov edx, esi
mov dword [esp + 0x128], eax
call fcn.5b81a749
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x148], eax
push 4
pop edi
lea eax, [ebp + 8]
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x150], edi
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x160], edi
mov dword [esp + 0x164], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x38], eax
xor ecx, ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x168], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x170], edi
mov dword [esp + 0x174], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x178], eax
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x180], edi
mov dword [esp + 0x184], ecx
lea eax, [esp + 0x58]
mov edx, 0x5b819511
push eax
push 0x13
push ecx
push ecx
call fcn.5b81a680
mov edi, dword [esp + 0x40]
mov byte [esp + 0x4c], 0
cmp byte [esp + 0x48], 0
je 0x5b81e4ba
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jns 0x5b81e4e9
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b81e4ef
test byte [eax + 0x1c], 1
je 0x5b81e4ef
push ebx
lfence
push dword [eax + 0x14]
mov edx, 0x5b80b610
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.5b81ae33
jmp 0x5b81e4ef
mov dword [edi], 2
test ebx, ebx
jns 0x5b81e4fe
push edi
lfence
call sym.mpclient.dll_MpHandleClose
xor edi, edi
mov eax, dword [esp + 0x1c]
mov dword [eax], edi
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b81e565
test byte [eax + 0x1c], 4
je 0x5b81e565
push ebx
lfence
push dword [eax + 0x14]
mov edx, 0x5b80b610
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.5b81ae33
jmp 0x5b81e565
cmp eax, edi
je 0x5b81e560
test byte [eax + 0x1c], 1
je 0x5b81e560
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
jmp 0x5b81e555
cmp eax, edi
je 0x5b81e560
test byte [eax + 0x1c], 1
je 0x5b81e560
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
mov edx, 0x5b80b610
pop ecx
call fcn.5b81ae17
mov ebx, 0x80070057
test esi, esi
je 0x5b81e56f
push esi
call sym.mpclient.dll_MpFreeMemory
mov ecx, dword [esp + 0x18c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.5b884340
mov esp, ebp
pop ebp
ret 0x14