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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1008e168]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x78]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x20]
mov ebp, dword [esp + 0xa0]
push edi
push ecx
mov ebx, dword [esi + 0x5d8]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x2c], eax
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], ebp
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], ebx
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0
push ebp
push ebp
lea edi, [esi + 0x508]
push eax
call fcn.100602f0
test eax, eax
js 0x100580ec
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x30]
push eax
push 0
lea eax, [esi + 0x558]
push eax
push ebp
push dword [esp + 0x48]
call fcn.100602f0
mov dword [esp + 0x18], eax
test eax, eax
js 0x100580ec
mov ecx, dword [0x10092868]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x224]
mov ecx, dword [ecx + edx*4]
mov ecx, dword [ecx + 0xe4]
shr ecx, 0xe
and ecx, 1
mov dword [esi + 0x610], ecx
mov eax, dword [esp + 0x10]
mov dword [edi + 0xec], eax
movdqu xmm0, xmmword [esp + 0x38]
movdqu xmmword [edi + 0xc0], xmm0
mov eax, dword [esp + 0x30]
mov dword [edi + 0xe0], eax
movdqu xmm0, xmmword [esp + 0x78]
movdqu xmmword [edi + 0x90], xmm0
mov eax, dword [esp + 0x14]
mov dword [edi + 0xd8], eax
movdqu xmm0, xmmword [esp + 0x68]
movdqu xmmword [edi + 0x70], xmm0
mov eax, dword [esp + 0x28]
mov dword [edi + 0xd4], eax
movdqu xmm0, xmmword [esp + 0x58]
movdqu xmmword [edi + 0x60], xmm0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jae 0x10057ef7
mov dword [edi + 0xe4], eax
movdqu xmm0, xmmword [esp + 0x38]
movdqu xmmword [edi + 0xa0], xmm0
mov eax, dword [esp + 0x10]
mov dword [esi + 0xa4], eax
movdqu xmm0, xmmword [esp + 0x38]
movdqu xmmword [esi + 0x5c], xmm0
mov eax, dword [esp + 0x10]
mov dword [esi + 0xa8], eax
or dword [esi + 0x44], 0x80
jmp 0x10057f62
jbe 0x10057f2f
mov dword [edi + 0xe4], ecx
movdqu xmm0, xmmword [esp + 0x48]
movdqu xmmword [edi + 0xa0], xmm0
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xa4], eax
movdqu xmm0, xmmword [esp + 0x48]
movdqu xmmword [esi + 0x5c], xmm0
mov eax, dword [esp + 0x1c]
or dword [esi + 0x4fc], 2
jmp 0x10057f5c
mov dword [edi + 0xe4], eax
movdqu xmm0, xmmword [esp + 0x38]
movdqu xmmword [edi + 0xa0], xmm0
mov eax, dword [esp + 0x10]
mov dword [esi + 0xa4], eax
movdqu xmm0, xmmword [esp + 0x38]
movdqu xmmword [esi + 0x5c], xmm0
mov eax, dword [esp + 0x10]
mov dword [esi + 0xa8], eax
mov eax, dword [esp + 0x14]
mov ebp, ebx
mov dword [esi + 0xac], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0xb0], eax
movdqu xmm0, xmmword [esp + 0x68]
movdqu xmmword [esi + 0x7c], xmm0
and ebp, 0x100
je 0x10057f93
test ebx, 0x400
jne 0x10057f9f
test ebp, ebp
jne 0x10057fc5
test ebx, 0x200
je 0x10057fc5
lea edx, [esi + 0x10]
mov ebx, 0xc
lea ecx, [esp + 0x58]
jmp 0x10057fb0
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10058088
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x10057fb0
xor ecx, ecx
mov eax, dword [esi + 0x44]
shl ecx, 0xa
or ecx, eax
xor ecx, eax
and ecx, 0x400
xor ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x44], ecx
test ebp, ebp
je 0x10057fef
test eax, 0x200
jne 0x10057ff6
test ebp, ebp
jne 0x10057ffd
test eax, 0x400
je 0x10057ffd
or dword [esi + 0x4fc], 1
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x10c]
test ecx, ecx
je 0x1005802b
test byte [esi + 0x46], 1
je 0x10058027
test ebp, ebp
je 0x10058020
test eax, 0x200
jne 0x1005802b
test ebp, ebp
jne 0x10058027
test eax, 0x400
jne 0x1005802b
test ecx, ecx
jne 0x10058032
or dword [esi + 0x4fc], 4
xor ecx, ecx
cmp dword [edx + 0x10c], ecx
sete cl
shl ecx, 8
xor ecx, dword [esi + 0x4fc]
and ecx, 0x100
xor ecx, dword [esi + 0x4fc]
mov dword [esi + 0x4fc], ecx
mov eax, dword [esi + 0x44]
shr eax, 5
xor eax, ecx
and eax, 0x800
xor ecx, eax
mov dword [esi + 0x4fc], ecx
test ecx, 0x900
jne 0x10058092
push edi
push dword [esi + 0x40]
push dword [esp + 0x2c]
call fcn.10057cc0
mov eax, dword [esp + 0x18]
jmp 0x100580ec
mov ecx, 1
jmp 0x10057fc7
mov ebx, dword [edi + 0xd0]
mov ecx, 0x2000000
mov edx, 0x800000
mov eax, ecx
and ebx, 0x100
je 0x100580bb
cmp dword [esi + 0x40], 2
cmove eax, edx
mov dword [edi + 0xfc], eax
jmp 0x100580c8
cmp dword [esi + 0x40], 2
cmove eax, edx
mov dword [edi + 0x100], eax
mov eax, dword [esp + 0x18]
test ebx, ebx
je 0x100580df
cmp dword [esi + 0x40], 2
cmove ecx, edx
mov dword [edi + 0x100], ecx
jmp 0x100580ec
cmp dword [esi + 0x40], 2
cmove ecx, edx
mov dword [edi + 0xfc], ecx
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007d8c1
add esp, 0x8c
ret 8