Function at 0x4d9480
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510118
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x556620]
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]
mov esi, dword [ebp + 0x10]
mov byte [edi + 0x14], al
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi], vtable.BrokerMAPIObject.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x30], 7
mov dword [edi + 0x2c], 0
mov word [edi + 0x1c], ax
mov dword [ebp - 4], 0
cmp word [esi], ax
jne 0x4d9500
xor ecx, ecx
jmp 0x4d9514
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d9505
sub ecx, ebx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 0x1c]
call fcn.004073d0
mov esi, dword [ebp + 0x14]
xor eax, eax
mov dword [edi + 0x48], 7
mov dword [edi + 0x44], 0
mov word [edi + 0x34], ax
mov byte [ebp - 4], 1
cmp word [esi], ax
jne 0x4d9542
xor ecx, ecx
jmp 0x4d9556
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d9547
sub ecx, ebx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 0x34]
call fcn.004073d0
mov esi, dword [ebp + 0x18]
xor eax, eax
mov dword [edi + 0x60], 7
mov dword [edi + 0x5c], 0
mov word [edi + 0x4c], ax
mov byte [ebp - 4], 2
cmp word [esi], ax
jne 0x4d9584
xor ecx, ecx
jmp 0x4d959f
mov ecx, esi
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d9590
sub ecx, ebx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 0x4c]
call fcn.004073d0
mov esi, dword [ebp + 0x1c]
mov dword [edi + 0x78], 0xf
mov dword [edi + 0x74], 0
mov byte [edi + 0x64], 0
cmp byte [esi], 0
mov byte [ebp - 4], 3
jne 0x4d95cb
xor ecx, ecx
jmp 0x4d95d9
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d95d0
sub ecx, ebx
push ecx
push esi
lea ecx, [edi + 0x64]
call fcn.00408dc0
mov esi, dword [ebp + 0x20]
mov dword [edi + 0x90], 0xf
mov dword [edi + 0x8c], 0
mov byte [edi + 0x7c], 0
cmp byte [esi], 0
mov byte [ebp - 4], 4
jne 0x4d960b
xor ecx, ecx
jmp 0x4d9619
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d9610
sub ecx, ebx
push ecx
push esi
lea ecx, [edi + 0x7c]
call fcn.00408dc0
mov esi, dword [ebp + 0x24]
mov dword [edi + 0xa8], 0xf
mov dword [edi + 0xa4], 0
mov byte [edi + 0x94], 0
cmp byte [esi], 0
mov byte [ebp - 4], 5
jne 0x4d964e
xor ecx, ecx
jmp 0x4d965c
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d9653
sub ecx, ebx
push ecx
push esi
lea ecx, [edi + 0x94]
call fcn.00408dc0
mov eax, dword [ebp + 0x28]
push 0x5374b8
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.0042af80
add esp, 4
mov dword [edi + 0xe0], eax
test eax, eax
je 0x4d980b
push 8
call fcn.00405f0d
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [ebp - 4], 7
test ebx, ebx
je 0x4d9764
xorps xmm0, xmm0
push str.MAPIFreeBuffer
movq qword [ebx], xmm0
push dword [edi + 0xe0]
call esi
push str.MAPIAllocateBuffer
push dword [edi + 0xe0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
jmp 0x4d9766
xor ebx, ebx
push str.MAPIInitialize
push dword [edi + 0xe0]
mov byte [ebp - 4], 6
mov dword [edi + 0xac], ebx
call esi
push str.MAPIUninitialize
push dword [edi + 0xe0]
mov dword [edi + 4], eax
call esi
push str.MAPILogonEx
push dword [edi + 0xe0]
mov dword [edi + 8], eax
call esi
push str.HrQueryAllRows
push dword [edi + 0xe0]
mov dword [edi + 0xc], eax
call esi
mov dword [edi + 0x10], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4d980b
cmp dword [edi + 8], 0
je 0x4d980b
push 0
call eax
test eax, eax
js 0x4d9815
mov eax, dword [edi + 0xc]
mov dword [edi + 0xb8], 1
test eax, eax
je 0x4d9815
lea ecx, [edi + 0xbc]
push ecx
push 0x63
push 0
push 0
push 0
call eax
test eax, eax
mov eax, edi
js 0x4d9817
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