Function at 0x503e10
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x150
mov esi, esp
mov dword [esi + 0x10], ebp
mov eax, dword [ebp + 8]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x30], ecx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov edx, esp
mov dword [esi + 0x13c], edx
mov dword [esi + 0x148], 0xffffffff
lea edx, [esi + 0x140]
mov dword [esi + 0x144], 0x50bf20
mov edi, dword fs:[0]
mov dword [esi + 0x140], edi
mov dword fs:[0], edx
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf8], ecx
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 0xc], 0x602310
mov dword [eax + 8], 0x20
mov dword [eax + 4], 8
call fcn.0055fab0
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], 0
lea eax, [esi + 0x40]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x148], 0
mov eax, esp
mov dword [eax], ecx
call fcn.004bc3f0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
jmp 0x503ed1
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x34]
mov edi, dword [esi + 0x30]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0xfc], ecx
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], edx
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edx
mov dword [esi + 0x110], edx
shl edi, 5
mov ecx, edx
add ecx, edi
mov dword [esi + 0xac], ecx
mov ecx, dword [esi + 0xac]
mov dword [esi + 0x114], edx
mov dword [esi + 0x118], ecx
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x11c], eax
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x54], ecx
mov ecx, dword [esi + 0x68]
mov dword [esi + 0x58], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x54]
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x58]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x60]
mov dword [esi + 0x7c], eax
lea eax, [esi + 0x70]
mov dword [esi + 0x120], eax
cmp dword [esi + 0x7c], 0
jne 0x503f71
jmp 0x503f8c
mov eax, dword [esi + 0x7c]
dec eax
mov dword [esi + 0x7c], eax
mov eax, esp
lea ecx, [esi + 0x70]
mov dword [eax], ecx
call fcn.004f1250
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
jmp 0x503fd7
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x30]
mov edi, dword [esi + 0x4c]
mov dword [esi + 0x124], edi
mov edi, dword [esi + 0x50]
mov dword [esi + 0x128], edi
lea edi, [esi + 0x40]
mov dword [esi + 0x12c], edi
mov dword [esi + 0x48], edx
mov edx, dword [esi + 0x48]
mov dword [ecx + 8], edx
movsd xmm0, qword [esi + 0x40]
movsd qword [ecx], xmm0
mov ecx, dword [esi + 0x140]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x84]
cmp eax, 0
sete al
test al, 1
jne 0x503f8c
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x80]
mov dword [esi + 0x18], eax
mov dword [esi + 0x130], eax
mov edx, dword [esi + 0x84]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x134], edx
mov dword [esi + 0x50], eax
cmp eax, ecx
jae 0x50404c
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x18]
shl edx, 5
add eax, edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x138], eax
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [esi + 0x88]
mov dword [eax], ecx
call fcn.00414d70
jmp 0x504069
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x38]
mov eax, esp
mov dword [eax + 4], edx
mov dword [eax], ecx
mov dword [eax + 8], 0x602320
call fcn.005f6c04
jmp 0x504067
ud2
lea ecx, [esi + 0xd0]
lea eax, [esi + 0x88]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
call sub.VCRUNTIME140.dll_memcpy
lea ecx, [esi + 0xb0]
lea eax, [esi + 0xd0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0xb0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
call sub.VCRUNTIME140.dll_memcpy
jmp 0x503f60