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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8050
call fcn.004bdf20
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov edx, dword [ebx + 0x20]
mov dword [ebp - 0x8040], edx
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x8018], eax
xor eax, eax
xor esi, esi
dec edx
mov dword [ebp - 0x8010], ecx
mov dword [ebp - 0x8020], edi
mov dword [ebp - 0x8044], eax
je 0x4d6fad
sub ecx, edi
mov dword [ebp - 0x8028], ecx
jmp 0x4d6f46
mov ecx, dword [ebp - 0x8028]
mov eax, esi
imul eax, eax, 0x54
lea eax, [eax + ebx + 0x28]
add ecx, edi
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x8040]
mov dword [eax + 0x44], 4
mov dword [eax + 0x3c], edi
mov dword [eax + 0x40], ecx
test esi, esi
jne 0x4d6f74
lea edx, [ebp - 0x800c]
mov dword [eax + 0x34], edx
mov eax, dword [eax + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x8040]
add dword [ebp - 0x8044], eax
mov ecx, dword [ebx + 0x1c]
add eax, eax
add eax, eax
add eax, eax
inc esi
dec ecx
add edi, eax
cmp esi, ecx
jb 0x4d6f40
mov edi, dword [ebp - 0x8020]
mov ecx, dword [ebp - 0x8010]
mov eax, dword [ebp - 0x8044]
mov edx, dword [ebp + 0x10]
sub edx, eax
push edx
lea edx, [edi + eax*8]
push edx
lea edx, [ebp - 0x400c]
push edx
lea eax, [ecx + eax*8]
push eax
call fcn.004d6d40
mov ecx, dword [ebx + 0x1c]
add esp, 0x10
xor edi, edi
dec ecx
je 0x4d7012
lea esi, [ebx + 0x78]
mov eax, dword [esi]
mov edx, dword [esi - 0x1c]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x8010], edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x8010]
push 0x800
push ecx
lea edx, [ebp - 0x400c]
push edx
call fcn.004d0380
mov eax, dword [ebx + 0x1c]
inc edi
dec eax
add esp, 0xc
add esi, 0x54
cmp edi, eax
jb 0x4d6fd5
xor edi, edi
mov esi, dword [ebp - 0x8018]
mov dword [ebp - 0x8040], edi
jmp 0x4d7022
xor edi, edi
xor edx, edx
mov ecx, 2
mov dword [ebp - 0x8024], edi
mov dword [ebp - 0x8020], edi
mov dword [ebp - 0x8014], edi
mov dword [ebp - 0x8010], edi
mov dword [ebp - 0x801c], edi
mov dword [ebp - 0x8018], edi
mov dword [ebp - 0x803c], edx
mov dword [ebp - 0x8038], edx
mov dword [ebp - 0x8034], edx
mov dword [ebp - 0x8030], edx
mov dword [ebp - 0x804c], edx
mov dword [ebp - 0x8048], edx
mov dword [ebp - 0x802c], edx
mov dword [ebp - 0x8028], edx
mov dword [ebp - 0x8044], ecx
lea eax, [ebp - 0x380c]
lea ebx, [ecx - 2]
mov ecx, dword [ebp - 0x8040]
shr ebx, cl
test bl, 1
je 0x4d714a
mov ecx, dword [eax]
xor dword [ebp - 0x801c], ecx
mov ecx, dword [eax + 4]
xor dword [ebp - 0x8018], ecx
mov ecx, dword [eax + 0x800]
xor dword [ebp - 0x8014], ecx
mov ecx, dword [eax + 0x804]
xor dword [ebp - 0x8010], ecx
mov ecx, dword [eax + 0x1000]
xor dword [ebp - 0x8024], ecx
mov ecx, dword [eax + 0x1004]
xor dword [ebp - 0x8020], ecx
mov ecx, dword [eax + 0x1800]
xor dword [ebp - 0x802c], ecx
mov ecx, dword [eax + 0x1804]
xor dword [ebp - 0x8028], ecx
mov ecx, dword [eax + 0x2000]
xor dword [ebp - 0x804c], ecx
mov ecx, dword [eax + 0x2004]
xor dword [ebp - 0x8048], ecx
mov ecx, dword [eax + 0x2800]
xor dword [ebp - 0x8034], ecx
mov ecx, dword [eax + 0x2804]
xor dword [ebp - 0x8030], ecx
mov ecx, dword [eax + 0x3000]
xor dword [ebp - 0x803c], ecx
mov ecx, dword [eax + 0x3004]
xor edi, dword [eax - 0x800]
xor edx, dword [eax - 0x7fc]
xor dword [ebp - 0x8038], ecx
mov ebx, dword [ebp - 0x8044]
mov ecx, dword [ebp - 0x8040]
lea ebx, [ebx - 1]
shr ebx, cl
test bl, 1
je 0x4d7212
mov ecx, dword [eax + 8]
xor dword [ebp - 0x801c], ecx
mov ecx, dword [eax + 0xc]
xor dword [ebp - 0x8018], ecx
mov ecx, dword [eax + 0x808]
xor dword [ebp - 0x8014], ecx
mov ecx, dword [eax + 0x80c]
xor dword [ebp - 0x8010], ecx
mov ecx, dword [eax + 0x1008]
xor dword [ebp - 0x8024], ecx
mov ecx, dword [eax + 0x100c]
xor dword [ebp - 0x8020], ecx
mov ecx, dword [eax + 0x1808]
xor dword [ebp - 0x802c], ecx
mov ecx, dword [eax + 0x180c]
xor dword [ebp - 0x8028], ecx
mov ecx, dword [eax + 0x2008]
xor dword [ebp - 0x804c], ecx
mov ecx, dword [eax + 0x200c]
xor dword [ebp - 0x8048], ecx
mov ecx, dword [eax + 0x2808]
xor dword [ebp - 0x8034], ecx
mov ecx, dword [eax + 0x280c]
xor dword [ebp - 0x8030], ecx
mov ecx, dword [eax + 0x3008]
xor dword [ebp - 0x803c], ecx
mov ecx, dword [eax + 0x300c]
xor edi, dword [eax - 0x7f8]
xor edx, dword [eax - 0x7f4]
xor dword [ebp - 0x8038], ecx
mov ebx, dword [ebp - 0x8044]
mov ecx, dword [ebp - 0x8040]
shr ebx, cl
test bl, 1
je 0x4d72d7
mov ecx, dword [eax + 0x10]
xor dword [ebp - 0x801c], ecx
mov ecx, dword [eax + 0x14]
xor dword [ebp - 0x8018], ecx
mov ecx, dword [eax + 0x810]
xor dword [ebp - 0x8014], ecx
mov ecx, dword [eax + 0x814]
xor dword [ebp - 0x8010], ecx
mov ecx, dword [eax + 0x1010]
xor dword [ebp - 0x8024], ecx
mov ecx, dword [eax + 0x1014]
xor dword [ebp - 0x8020], ecx
mov ecx, dword [eax + 0x1810]
xor dword [ebp - 0x802c], ecx
mov ecx, dword [eax + 0x1814]
xor dword [ebp - 0x8028], ecx
mov ecx, dword [eax + 0x2010]
xor dword [ebp - 0x804c], ecx
mov ecx, dword [eax + 0x2014]
xor dword [ebp - 0x8048], ecx
mov ecx, dword [eax + 0x2810]
xor dword [ebp - 0x8034], ecx
mov ecx, dword [eax + 0x2814]
xor dword [ebp - 0x8030], ecx
mov ecx, dword [eax + 0x3010]
xor dword [ebp - 0x803c], ecx
mov ecx, dword [eax + 0x3014]
xor edi, dword [eax - 0x7f0]
xor edx, dword [eax - 0x7ec]
xor dword [ebp - 0x8038], ecx
mov ebx, dword [ebp - 0x8044]
mov ecx, dword [ebp - 0x8040]
lea ebx, [ebx + 1]
shr ebx, cl
test bl, 1
je 0x4d739f
mov ecx, dword [eax + 0x18]
xor dword [ebp - 0x801c], ecx
mov ecx, dword [eax + 0x1c]
xor dword [ebp - 0x8018], ecx
mov ecx, dword [eax + 0x818]
xor dword [ebp - 0x8014], ecx
mov ecx, dword [eax + 0x81c]
xor dword [ebp - 0x8010], ecx
mov ecx, dword [eax + 0x1018]
xor dword [ebp - 0x8024], ecx
mov ecx, dword [eax + 0x101c]
xor dword [ebp - 0x8020], ecx
mov ecx, dword [eax + 0x1818]
xor dword [ebp - 0x802c], ecx
mov ecx, dword [eax + 0x181c]
xor dword [ebp - 0x8028], ecx
mov ecx, dword [eax + 0x2018]
xor dword [ebp - 0x804c], ecx
mov ecx, dword [eax + 0x201c]
xor dword [ebp - 0x8048], ecx
mov ecx, dword [eax + 0x2818]
xor dword [ebp - 0x8034], ecx
mov ecx, dword [eax + 0x281c]
xor dword [ebp - 0x8030], ecx
mov ecx, dword [eax + 0x3018]
xor dword [ebp - 0x803c], ecx
mov ecx, dword [eax + 0x301c]
xor edi, dword [eax - 0x7e8]
xor edx, dword [eax - 0x7e4]
xor dword [ebp - 0x8038], ecx
mov ecx, dword [ebp - 0x8044]
add ecx, 4
lea ebx, [ecx - 2]
add eax, 0x20
mov dword [ebp - 0x8044], ecx
cmp ebx, 0x100
jb 0x4d7089
mov eax, dword [ebp - 0x8018]
mov ecx, dword [ebp - 0x8014]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x8024]
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x801c]
mov dword [esi + 0xc0], eax
mov eax, dword [ebp - 0x8028]
mov dword [esi + 0x40], edx
mov edx, dword [ebp - 0x8010]
mov dword [esi + 0x104], eax
mov eax, dword [ebp - 0x8034]
mov dword [esi + 0x80], ecx
mov ecx, dword [ebp - 0x8020]
mov dword [esi + 0x84], edx
mov edx, dword [ebp - 0x802c]
mov dword [esi + 0x180], eax
mov eax, dword [ebp - 0x8038]
mov dword [esi + 0xc4], ecx
mov ecx, dword [ebp - 0x804c]
mov dword [esi + 0x100], edx
mov edx, dword [ebp - 0x8048]
mov dword [esi + 0x1c4], eax
mov eax, dword [ebp - 0x8040]
mov dword [esi + 0x140], ecx
mov ecx, dword [ebp - 0x8030]
mov dword [esi + 0x144], edx
mov edx, dword [ebp - 0x803c]
inc eax
mov dword [esi], edi
mov dword [esi + 0x184], ecx
mov dword [esi + 0x1c0], edx
add esi, 8
mov dword [ebp - 0x8040], eax
cmp eax, 8
jb 0x4d7020
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc40c
mov esp, ebp
pop ebp
ret