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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
mov eax, dword [0x11ad127c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
push 0x10
push 0x2c0
mov dword [esp + 0x3c], eax
call fcn.10434a32
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
je 0x10051959
push 0x2c0
push 0
push esi
call fcn.10425c00
mov edi, dword fs:[0x2c]
mov eax, 1
mov word [esi + 0x10], ax
add esp, 0xc
mov eax, dword [0x11d0c5b8]
mov edx, dword [edi + eax*4]
mov ecx, dword [edx + 0x10]
cmp dword [ecx + 0x7b30], 0
jne 0x10051584
mov dword [ecx + 0x7b30], esi
mov eax, dword [ecx + 0x7b2c]
test eax, eax
je 0x10051590
mov dword [eax], esi
mov dword [esi], 0
mov eax, dword [edx + 0x10]
push 0x10
push 0xb50
mov eax, dword [eax + 0x7b2c]
mov dword [esi + 4], eax
inc dword [ecx + 0x7b34]
mov dword [ecx + 0x7b2c], esi
call fcn.10434a32
add esp, 8
test eax, eax
je 0x100518f3
mov ecx, eax
call fcn.1004a3b0
mov dword [esp + 0xc], eax
test eax, eax
je 0x100518f3
mov eax, dword [0x11d0c5b8]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x10]
call fcn.1002c560
mov edx, dword [esp + 0x14]
mov ecx, 0x94
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x38]
mov edi, eax
mov dword [esp + 0x20], eax
push 0x40
lea esi, [edx + 0x38]
rep movsd dword es:[edi], dword [esi]
push 0
movsw word es:[edi], word [esi]
mov ecx, dword [edx + 0x24]
mov esi, dword [esp + 0x18]
lea edi, [esi + 0x298]
mov dword [esp + 0x38], edi
mov dword [esi + 0x24], ecx
mov eax, dword [edx + 0x290]
mov dword [esi + 0x290], eax
mov eax, dword [edx + 0x298]
mov ecx, dword [edx + 0x29c]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, dword [edx + 0x2a0]
mov dword [esi + 0x2a0], eax
mov eax, dword [edx + 0x2a4]
mov dword [esi + 0x2a4], eax
mov eax, dword [edx + 0x2a8]
mov dword [esi + 0x2a8], eax
mov eax, dword [edx + 0x2ac]
mov dword [esi + 0x2ac], eax
lea eax, [esi + 0x1da]
mov dword [esp + 0x34], eax
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [esi + 0x182]
mov dword [esp + 0x2c], eax
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [esi + 0x196]
push eax
mov dword [esp + 0x34], eax
call fcn.10425c00
mov edx, dword [esi + 8]
add esp, 0xc
mov ecx, dword [esp + 0xc]
test edx, edx
je 0x100516e6
mov dword [ecx + 0xadc], edx
mov eax, dword [edx + 0xae0]
mov dword [ecx + 0xae0], eax
mov eax, dword [edx + 0xae0]
mov dword [eax + 0xadc], ecx
mov dword [edx + 0xae0], ecx
jmp 0x100516f2
mov dword [ecx + 0xadc], ecx
mov dword [ecx + 0xae0], ecx
mov edx, dword [esp + 0x14]
mov dword [esi + 8], ecx
inc dword [esi + 0xc]
mov dword [ecx], esi
mov edx, dword [edx + 8]
test edx, edx
je 0x1005171f
mov eax, dword [edx + 8]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0x14]
jmp 0x10051741
mov dword [esp + 0x60], 0
xor eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c], eax
xorps xmm0, xmm0
lea eax, [edx + 8]
neg edx
push 0x40
sbb edx, edx
and edx, eax
push 0
movups xmmword [esp + 0x78], xmm0
mov eax, dword [edx + 0x118]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0x11c]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 0x120]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0x124]
mov dword [esp + 0x54], eax
lea eax, [esp + 0xd0]
push eax
movups xmmword [esp + 0x5c], xmm0
call fcn.10425c00
mov eax, dword [esp + 0x24]
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0x10]
push 0x40
push 0
mov eax, dword [eax + 0xbe2c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x88]
push eax
call fcn.10425c00
mov ecx, dword [esp + 0x28]
add esp, 0xc
xor edi, edi
test ecx, ecx
je 0x10051839
mov esi, dword [esp + 0x20]
nop word [eax + eax]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xdc]
push edi
push eax
push dword [esp + edi*4 + 0x7c]
push esi
call fcn.101d4ff0
test eax, eax
js 0x1005195e
mov ecx, dword [esp + 0x1c]
inc edi
cmp edi, ecx
jb 0x100517e0
mov edi, dword [esp + 0xc]
lea esi, [esp + 0xc8]
and ecx, 0x1fffffff
add edi, 0xe0
add ecx, ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x20e], 1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
movups xmm0, xmmword [esp + 0x80]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0xc]
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], ecx
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x90]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0xa0]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [esp + 0xb0]
movups xmmword [eax + 0x30], xmm0
jne 0x100518a3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x1da]
mov ecx, dword [ecx + 0x1de]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x40]
push 0
push 0
push ecx
mov edx, dword [eax]
lea ecx, [esp + 0x6c]
mov eax, dword [eax + 4]
or dword [edi + 0xb38], 0x8000
push ecx
push 0
push eax
push edx
push 0
push dword [esp + 0x40]
mov ecx, edi
call fcn.1004a4b0
mov eax, dword [esp + 0x34]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.1004ee00
mov ecx, dword [0x11d0c5b8]
mov eax, dword [edi + ecx*4]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x7b30], esi
jne 0x10051919
mov eax, dword [esi]
mov dword [ecx + 0x7b30], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
test edx, edx
je 0x10051927
mov dword [edx + 4], eax
jmp 0x1005193a
mov dword [ecx + 0x7b2c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x1005193a
mov dword [eax], 0
mov edx, dword [esi + 4]
test edx, edx
je 0x10051945
mov eax, dword [esi]
mov dword [edx], eax
dec dword [ecx + 0x7b34]
push 0x2c0
push esi
call fcn.1045088a
add esp, 8
mov eax, 0x80004005
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 8