Function at 0x508ce0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b36c1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5fa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
movzx eax, byte [esi + 0x18]
mov byte [edi + 0x18], al
movzx eax, byte [esi + 0x19]
mov byte [edi + 0x19], al
movzx eax, byte [esi + 0x1a]
mov byte [edi + 0x1a], al
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov esi, dword [esi + 0x34]
mov dword [edi + 0x30], 0
lea eax, [esi + 1]
push eax
call fcn.0058813f
mov dword [edi + 0x34], esi
add esp, 4
mov dword [edi + 0x38], esi
mov esi, dword [ebp + 8]
mov dword [edi + 0x30], eax
mov edx, dword [esi + 0x30]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x508d87
mov dword [ebp - 4], 0
mov esi, dword [esi + 0x40]
mov dword [edi + 0x3c], 0
lea eax, [esi + 1]
push eax
call fcn.0058813f
mov dword [edi + 0x40], esi
add esp, 4
mov dword [edi + 0x44], esi
mov esi, dword [ebp + 8]
mov dword [edi + 0x3c], eax
mov edx, dword [esi + 0x3c]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x508dc1
mov byte [ebp - 4], 1
mov esi, dword [esi + 0x4c]
mov dword [edi + 0x48], 0
lea eax, [esi + 1]
push eax
call fcn.0058813f
mov dword [edi + 0x4c], esi
add esp, 4
mov dword [edi + 0x50], esi
mov esi, dword [ebp + 8]
mov dword [edi + 0x48], eax
mov edx, dword [esi + 0x48]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x508df8
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x58]
mov dword [edi + 0x54], 0
lea eax, [esi + 1]
push eax
call fcn.0058813f
mov dword [edi + 0x58], esi
add esp, 4
mov dword [edi + 0x5c], esi
mov esi, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov edx, dword [esi + 0x54]
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x508e30
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], ecx
movups xmm0, xmmword [esi + 0x68]
movups xmmword [edi + 0x68], xmm0
movups xmm0, xmmword [esi + 0x78]
movups xmmword [edi + 0x78], xmm0
movups xmm0, xmmword [esi + 0x88]
movups xmmword [edi + 0x88], xmm0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov eax, dword [esi + 0x9c]
mov dword [ebp + 8], eax
test eax, eax
je 0x508ed4
mov ecx, 0x10
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0058813f
mov ecx, dword [ebp + 8]
mov dword [edi + 0x9c], ecx
mov dword [edi + 0xa0], ecx
shl ecx, 4
push ecx
mov dword [edi + 0x98], eax
push dword [esi + 0x98]
push eax
call fcn.0058aed0
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4