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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, ecx
mov eax, dword [0x808040]
xor eax, ebp
mov dword [esp + 0x98], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
mov eax, dword [ecx]
cmp dword [eax + 0x18], 0x58c080
jne 0x58d41a
mov ecx, dword [esi + 0xc]
call fcn.0058fda0
mov eax, dword [esi + 0x6c]
cmp eax, dword [esi + 0x70]
je 0x58d40d
mov eax, dword [esi]
cmp dword [eax + 8], 0x58d2e0
jne 0x58d3fe
mov ecx, dword [esi + 0xc]
call fcn.0058fda0
cmp byte [esi + 0x9c], 0
je 0x58d40d
mov ecx, dword [esi + 0xc]
call fcn.0058fda0
mov edi, dword [esi + 0x6c]
cmp edi, dword [esi + 0x70]
je 0x58d694
mov ecx, dword [esi + 0xc]
call fcn.0058fda0
xor edx, edx
cmp dword [esi + 0x78], 0
jne 0x58d69d
mov dword [esp + 0x3c], edx
mov ebx, dword [edi + 0x28]
mov eax, dword [esi]
cmp dword [eax + 0x24], 0x58c4e0
jne 0x58d3f5
mov ecx, dword [esi + 0xc]
call fcn.0058fda0
mov eax, dword [esi + 0x64]
mov al, byte [eax + 0x20]
mov edx, dword [esi + 8]
cmp ebx, 2
sete cl
cmp al, byte [edx + 0x35]
ja 0x58d3ce
xor ecx, ecx
test cl, cl
mov eax, dword [esp + 0x3c]
jne 0x58d696
movdqu xmm0, xmmword [edi + 0x18]
movdqa xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
mov al, 1
mov byte [esp + 0x68], al
jmp 0x58d42b
mov ecx, esi
call fcn.0058c4e0
jmp 0x58d3be
mov ecx, esi
call fcn.0058d2e0
test al, al
jne 0x58d376
mov byte [esp + 0x50], 0
xor eax, eax
mov byte [esp + 0x68], al
jmp 0x58d42b
lea eax, [esp + 0x50]
mov dword [esp], eax
mov ecx, esi
call fcn.0058c080
sub esp, 4
lea ebx, [esp + 0x69]
mov ecx, dword [esi + 0xc]
call fcn.0058fda0
cmp dword [esi + 0x5c], 0
jne 0x58d60e
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 3]
mov dword [esp + 0x93], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x48], eax
movzx ebx, byte [esp + 0x68]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 0xc]
call fcn.0058fda0
movzx eax, byte [esi + 0x108]
mov byte [esp + 0x3b], bl
test bl, 1
je 0x58d5fe
test al, al
je 0x58d5fe
mov eax, dword [esi + 0xf0]
xor eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0xf4]
xor ecx, edi
or ecx, eax
jne 0x58d4f3
mov eax, dword [esi + 0xf8]
xor eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0xfc]
xor ecx, dword [esp + 0x40]
or ecx, eax
jne 0x58d4f3
mov eax, dword [esp + 0x48]
cmp dword [esi + 0x100], eax
jne 0x58d4f3
mov eax, dword [esp + 0x44]
cmp dword [esi + 0x104], eax
je 0x58d5e6
mov ecx, dword [esi + 0xc]
call fcn.0058fda0
mov ebx, edi
mov dword [esi + 0xf4], edi
mov edi, dword [esp + 0x4c]
mov dword [esi + 0xf0], edi
mov eax, dword [esp + 0x40]
mov dword [esi + 0xfc], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0xf8], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x100], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x104], eax
movzx eax, byte [esp + 0x3b]
mov byte [esi + 0x108], al
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x93]
mov dword [esi + 0x109], eax
mov dword [esi + 0x10c], ecx
mov ecx, dword [esi + 0xc]
call fcn.0058fda0
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
movzx eax, byte [esp + 0x3b]
mov byte [esp + 0x88], al
mov eax, dword [esp + 0x90]
mov dword [esp + 0x89], eax
mov eax, dword [esp + 0x93]
mov dword [esp + 0x8c], eax
movdqu xmm0, xmmword [esp + 0x70]
movups xmm1, xmmword [esp + 0x80]
movups xmmword [esp + 0x18], xmm1
movdqu xmmword [esp + 8], xmm0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0058fea0
sub esp, 0x28
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.005c6b46
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov cl, byte [esp + 0x3b]
and cl, 1
cmp cl, al
je 0x58d5e6
jmp 0x58d4f3
mov ecx, esi
call fcn.0058d2e0
test al, al
je 0x58d441
mov ecx, dword [esi + 0xc]
call fcn.0058fda0
mov edi, dword [esi + 0x5c]
mov dword [esp + 0x3c], edi
mov ecx, esi
call fcn.00503730
mov byte [esp + 0x40], al
mov eax, dword [edi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x8010bc]
movaps xmm0, xmmword [esp + 0x50]
movaps xmm1, xmmword [esp + 0x60]
movups xmmword [esp + 0x18], xmm1
movups xmmword [esp + 8], xmm0
movzx eax, byte [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
mov ecx, dword [esp + 0x3c]
call edi
sub esp, 0x2c
lea eax, [esp + 0x70]
movdqu xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movaps xmmword [esp + 0x60], xmm1
movdqa xmmword [esp + 0x50], xmm0
jmp 0x58d441
ud2
xor ebx, ebx
jmp 0x58d3da
mov ecx, esi
call fcn.0058c4e0
mov ecx, dword [esi + 8]
xor edx, edx
cmp al, byte [ecx + 0x35]
setbe dl
jmp 0x58d39e