Function at 0x489b40
Capabilities:
Check for peb beingdebugged flag
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x4ca860
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0x28]
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov dword [esi + 0x18], ecx
mov byte [esi + 0x14], al
lea ecx, [esi + 0x20]
mov dword [esi], vtable.BrokerMAPIObject.0
mov dword [esi + 0x1c], ebx
xor edx, edx
mov eax, edi
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x20], ebx
mov word [ecx + 4], dx
lea ebp, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x489ba4
sub eax, ebp
sar eax, 1
push eax
push edi
call fcn.00401cd6
mov edx, dword [esp + 0x34]
lea ecx, [esi + 0x3c]
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
mov word [ecx + 4], ax
mov eax, edx
mov byte [esp + 0x20], 1
lea edi, [eax + 2]
jmp 0x489be0
mov bp, word [eax]
add eax, 2
cmp bp, bx
jne 0x489be0
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.00401cd6
lea ecx, [esi + 0x58]
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
mov word [ecx + 4], dx
mov edx, dword [esp + 0x38]
mov eax, edx
mov byte [esp + 0x20], 2
lea edi, [eax + 2]
mov bp, word [eax]
add eax, 2
cmp bp, bx
jne 0x489c17
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.00401cd6
mov ebp, dword [esp + 0x3c]
lea edi, [esi + 0x74]
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [esp + 0x20], 3
mov byte [edi + 4], bl
lea ecx, [eax + 1]
jmp 0x489c50
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x489c50
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.00401bd1
mov ebp, dword [esp + 0x40]
lea edi, [esi + 0x90]
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [esp + 0x20], 4
mov byte [edi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x489c83
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.00401bd1
mov ebp, dword [esp + 0x44]
lea edi, [esi + 0xac]
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [esp + 0x20], 5
mov byte [edi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x489cb6
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.00401bd1
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov ecx, dword [0x50bcf8]
push str.MAPI32.DLL
mov byte [esp + 0x24], 6
call fcn.0044ed30
push 0xc
mov dword [esi + 0xf8], eax
call fcn.0048e1ac
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x489d79
mov eax, dword [esi + 0xf8]
push str.MAPIFreeBuffer
push eax
call ebp
mov ecx, dword [esi + 0xf8]
push str.MAPIAllocateBuffer
push ecx
mov dword [esp + 0x30], eax
call ebp
mov edx, dword [esp + 0x28]
mov dword [edi], vtable.MapiAllocator.0
mov dword [edi + 4], eax
mov dword [edi + 8], edx
jmp 0x489d7b
xor edi, edi
mov eax, dword [esi + 0xf8]
push str.MAPIInitialize
push eax
mov dword [esi + 0xc8], edi
call ebp
mov ecx, dword [esi + 0xf8]
push str.MAPIUninitialize
push ecx
mov dword [esi + 4], eax
call ebp
mov edx, dword [esi + 0xf8]
push str.MAPILogonEx
push edx
mov dword [esi + 8], eax
call ebp
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xf8]
push str.HrQueryAllRows
push eax
call ebp
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x489e0b
cmp dword [esi + 8], ebx
je 0x489e0b
push ebx
call eax
cmp eax, ebx
mov dword [esi + 0x1c], eax
jl 0x489e1c
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0xd4]
push eax
push 0x63
push ebx
push ebx
push ebx
mov dword [esi + 0xd0], 1
call ecx
mov dword [esi + 0x1c], eax
cmp eax, ebx
mov eax, esi
jl 0x489e1e
mov dword [esi + 0xd0], 2
jmp 0x489e1e
mov dword [esi + 0x1c], 0x80040102
mov dword [esi + 0xd0], 3
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x20