Function at 0x51b770
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565f9c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov al, byte [ebp + 8]
lea ecx, [edi + 0x1c]
mov esi, dword [ebp + 0x10]
mov edx, esi
mov byte [edi + 0x14], al
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi], vtable.BrokerMAPIObject.0
lea ebx, [edx + 2]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [ebp - 4], 0
mov word [ecx], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x51b7f0
sub edx, ebx
sar edx, 1
push edx
push esi
call fcn.00408740
mov esi, dword [ebp + 0x14]
lea ecx, [edi + 0x34]
mov edx, esi
mov dword [ecx + 0x10], 0
xor eax, eax
mov dword [ecx + 0x14], 7
mov byte [ebp - 4], 1
mov word [ecx], ax
lea ebx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x51b830
sub edx, ebx
sar edx, 1
push edx
push esi
call fcn.00408740
mov esi, dword [ebp + 0x18]
lea ecx, [edi + 0x4c]
mov edx, esi
mov dword [ecx + 0x10], 0
xor eax, eax
mov dword [ecx + 0x14], 7
mov byte [ebp - 4], 2
mov word [ecx], ax
lea ebx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x51b870
sub edx, ebx
sar edx, 1
push edx
push esi
call fcn.00408740
mov esi, dword [ebp + 0x1c]
lea ecx, [edi + 0x64]
mov edx, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ebp - 4], 3
mov byte [ecx], 0
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x51b8a6
sub edx, ebx
push edx
push esi
call fcn.0040a8a0
mov esi, dword [ebp + 0x20]
lea ecx, [edi + 0x7c]
mov edx, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ebp - 4], 4
mov byte [ecx], 0
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x51b8d6
sub edx, ebx
push edx
push esi
call fcn.0040a8a0
mov esi, dword [ebp + 0x24]
lea ecx, [edi + 0x94]
mov edx, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ebp - 4], 5
mov byte [ecx], 0
lea ebx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x51b910
sub edx, ebx
push edx
push esi
call fcn.0040a8a0
mov eax, dword [ebp + 0x28]
push 0x599a54
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.004368c0
add esp, 4
mov dword [edi + 0xe0], eax
test eax, eax
je 0x51bada
push 8
call fcn.00406909
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 7
test ebx, ebx
je 0x51ba13
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 0x51ba15
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 0x51bada
cmp dword [edi + 8], 0
je 0x51bada
push 0
mov ecx, esi
call dword [0x5677a4]
call esi
test eax, eax
js 0x51bae4
mov esi, dword [edi + 0xc]
mov dword [edi + 0xb8], 1
test esi, esi
je 0x51bae4
lea eax, [edi + 0xbc]
mov ecx, esi
push eax
push 0x63
push 0
push 0
push 0
call dword [0x5677a4]
call esi
test eax, eax
mov eax, edi
js 0x51bae6
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