Function at 0x51aea0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0x10]
call fcn.004cb890
mov dword [esp], 0x9c
mov ecx, eax
call fcn.004cba30
movzx ecx, byte [eax + 0x1a]
mov ebx, eax
sub esp, 4
movzx edx, byte [eax + 0x1c]
and byte [eax + 0x74], 0x80
or byte [eax + 0x7c], 0xf
and ecx, 0xfffffff0
and edx, 0xfffffffe
mov byte [eax + 0x1c], dl
mov byte [eax + 0x1a], cl
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0x6f2308
mov byte [eax + 0x18], 0
mov byte [eax + 0x19], 1
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov byte [eax + 0x70], 0
mov byte [eax + 0x71], 0
movzx eax, byte [eax + 0x78]
and byte [ebx + 0x24], 0xc0
and word [ebx + 0x26], 0xfe3f
and word [ebx + 0x24], 0xc03f
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x78], al
and byte [ebx + 0x29], 0x80
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x28], 0
and byte [ebx + 0x2c], 0x80
movzx eax, word [ebx + 0x3e]
movzx edi, word [ebx + 0x52]
or byte [ebx + 0x48], 0x7f
or dword [ebx + 0x40], 0x7fff8000
and ax, 0xf80f
or ax, 0x3f0
or di, 0x1fe0
mov word [ebx + 0x3e], ax
movzx eax, byte [ebx + 0x3c]
mov word [ebx + 0x52], di
shr di, 8
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x34], 0xffffffff
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x3c], al
mov eax, dword [ebx + 0x44]
mov byte [ebx + 0x59], 0
mov byte [ebx + 0x5a], 0
mov byte [ebx + 0x5b], 0
or eax, 0x7f8000
mov dword [ebx + 0x44], eax
shr eax, 0x18
or eax, 0xffffff80
mov byte [ebx + 0x47], al
mov eax, edi
or eax, 0xffffffe0
mov byte [ebx + 0x53], al
mov dword [ebx + 0x5c], 0xfffff800
or word [ebx + 0x38], 0xfff
or word [ebx + 0x48], 0x780
or dword [ebx + 0x4c], 0x1ff80
or word [ebx + 0x50], 0x1ff8
and byte [ebx + 0x57], 0x1f
and byte [ebx + 0x58], 0xe0
mov byte [ebx + 0x54], 0xff
and dword [ebx + 0x24], 0xffc03fff
movzx eax, byte [esi + 4]
mov byte [ebx + 0x18], al
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x74], eax
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x78], eax
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x4c], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x5c], eax
movzx edi, byte [esi + 5]
and edi, 0xf
mov eax, edi
mov byte [ebx + 0x19], al
movzx eax, byte [esi + 5]
and eax, 0xfffffff0
or eax, edi
mov byte [ebx + 0x19], al
movzx eax, byte [esi + 6]
and eax, 0xf
or eax, ecx
mov byte [ebx + 0x1a], al
movzx eax, byte [esi + 8]
and eax, 1
or eax, edx
mov byte [ebx + 0x1c], al
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x60], eax
mov eax, dword [esi + 0x50]
mov dword [ebx + 0x64], eax
mov eax, dword [esi + 0x54]
mov dword [ebx + 0x68], eax
mov eax, dword [esi + 0x58]
mov dword [ebx], 0x6f1628
mov dword [ebx + 0x84], 0xffffffff
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x80], eax
call fcn.004cb890
mov edi, eax
call fcn.004cb890
lea ecx, [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], eax
call fcn.005f3f30
mov dword [eax + 8], 0
mov edx, eax
mov dword [eax], 0
lea eax, [eax + 0xc]
mov byte [eax], 0
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x88], edi
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x90], 0x6f1b88
mov esi, dword [eax + 4]
mov dword [ebx + 0x94], 0
lea eax, [esi - 0xc]
cmp edx, eax
je 0x51b1d4
mov edx, dword [esi - 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp - 0x2c]
test edx, edx
mov eax, dword [eax]
js 0x51b174
cmp edi, eax
je 0x51b220
mov eax, dword [esi - 0xc]
mov edx, dword [esi - 8]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005f3f30
mov edi, eax
mov eax, dword [esi - 0xc]
test eax, eax
je 0x51b207
cmp eax, 1
lea edx, [edi + 0xc]
je 0x51b210
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x2c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi - 0xc]
mov esi, edx
mov dword [edi + 8], 0
mov dword [edi], eax
mov byte [esi + eax], 0
mov eax, dword [ebx + 0x8c]
lock sub dword [eax - 4], 1
mov dword [ebx + 0x8c], esi
mov eax, dword [ebx]
mov ecx, ebx
mov edx, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp], edx
call eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
sub esp, 4
mov dword [ebx + 0x94], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x98], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
lea esi, [edi + 0xc]
jmp 0x51b1b6
movzx eax, byte [esi]
mov byte [edi + 0xc], al
mov eax, dword [esi - 0xc]
mov esi, edx
jmp 0x51b1b6
lock add dword [esi - 4], 1
jmp 0x51b1c3