Function at 0x542af0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad5bc
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x62cf50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], eax
mov al, byte [ebp + 8]
lea ecx, [edi + 0x1c]
mov byte [edi + 0x14], al
mov edx, esi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi], vtable.BrokerMAPIObject.0
mov dword [edi + 4], 0
lea ebx, [edx + 2]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x542b91
sub edx, ebx
sar edx, 1
push edx
push esi
call fcn.00409db0
mov ebx, dword [ebp - 0x10]
lea ecx, [edi + 0x34]
mov edx, ebx
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x542bd0
sub edx, esi
sar edx, 1
push edx
push ebx
call fcn.00409db0
mov ebx, dword [ebp - 0x14]
lea ecx, [edi + 0x4c]
mov edx, ebx
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x542c10
sub edx, esi
sar edx, 1
push edx
push ebx
call fcn.00409db0
mov ebx, dword [ebp - 0x18]
lea ecx, [edi + 0x64]
mov edx, ebx
mov byte [ebp - 4], 3
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x542c46
sub edx, esi
push edx
push ebx
call fcn.0040c6f0
mov ebx, dword [ebp - 0x1c]
lea ecx, [edi + 0x7c]
mov edx, ebx
mov byte [ebp - 4], 4
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x542c76
sub edx, esi
push edx
push ebx
call fcn.0040c6f0
mov ebx, dword [ebp - 0x20]
lea ecx, [edi + 0x94]
mov edx, ebx
mov byte [ebp - 4], 5
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
lea esi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x542cb0
sub edx, esi
push edx
push ebx
call fcn.0040c6f0
mov eax, dword [ebp + 0x28]
push 0x5f19a4
mov byte [ebp - 4], 6
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
call fcn.004396f0
add esp, 4
mov dword [edi + 0xe0], eax
test eax, eax
je 0x542e7a
push 8
call fcn.00406b5e
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 7
test ebx, ebx
je 0x542db3
xorps xmm0, xmm0
push str.MAPIFreeBuffer
movq qword [ebx], xmm0
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIAllocateBuffer
push dword [edi + 0xe0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
mov dword [ebx + 4], esi
jmp 0x542db5
xor ebx, ebx
push str.MAPIInitialize
push dword [edi + 0xe0]
mov byte [ebp - 4], 6
mov dword [edi + 0xac], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIUninitialize
push dword [edi + 0xe0]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPILogonEx
push dword [edi + 0xe0]
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HrQueryAllRows
push dword [edi + 0xe0]
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [edi + 4]
mov dword [edi + 0x10], eax
test esi, esi
je 0x542e7a
cmp dword [edi + 8], 0
je 0x542e7a
push 0
mov ecx, esi
call dword [0x5b1854]
call esi
test eax, eax
js 0x542e84
mov esi, dword [edi + 0xc]
mov dword [edi + 0xb8], 1
test esi, esi
je 0x542e84
lea eax, [edi + 0xbc]
mov ecx, esi
push eax
push 0x63
push 0
push 0
push 0
call dword [0x5b1854]
call esi
test eax, eax
mov eax, edi
js 0x542e86
mov dword [edi + 0xb8], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov dword [edi + 0xb8], 3
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24