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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
push esi
mov esi, ecx
mov dword [esp + 0x1c], 0
push edi
mov edi, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mov edx, dword [esi + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0
test edx, edx
je 0x521374
test edi, edi
je 0x521374
movzx eax, byte [edi]
lea ecx, [eax + 1]
add eax, 0xffffffed
xor ecx, 1
dec ecx
mov dword [esp + 0x2c], ecx
cmp eax, 0x7f
ja case.0x5210b2.20
movzx eax, byte [eax + 0x52139c]
jmp dword [eax*4 + 0x52137c]
mov edx, dword [esp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + 8]
push edi
push esi
call fcn.00521050
mov eax, dword [esp + 0x20]
push edi
push esi
mov esi, dword [esp + 0x2c]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.00521050
add esp, 0x10
jmp 0x5212f7
mov ecx, edx
call fcn.00533bd0
inc dword [esi + 0x54]
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov eax, dword [esp + 0x18]
xor ecx, 8
push ecx
mov ecx, dword [esp + 0x20]
push edi
mov edx, dword [eax + 8]
call fcn.00521420
mov eax, dword [esp + 0x20]
push esi
push dword [ebp + 8]
mov esi, dword [esp + 0x2c]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.00521050
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov edx, edi
call fcn.00533bb0
mov ecx, esi
call fcn.00523610
jmp 0x5212f7
push dword [ebp + 0xc]
mov edx, dword [edi + 8]
mov ecx, esi
push dword [ebp + 8]
call fcn.00521420
add esp, 8
jmp 0x5212f7
mov edx, dword [edi + 8]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push dword [edi + 0xc]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00526ff0
add esp, 0x14
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [edi + 0xc]
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.00526f00
add esp, 0x18
jmp 0x5212f7
mov edx, dword [edi + 8]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push dword [edi + 0xc]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00526ff0
add esp, 0x14
xor eax, eax
cmp byte [edi], 0x46
setne al
push 0x80
push dword [ebp + 8]
add eax, 0x4b
push dword [esp + 0x24]
push dword [esp + 0x24]
push eax
jmp 0x521191
mov edx, dword [edi + 8]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00521cc0
mov edx, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esp + 0x24]
push dword [ebp + 8]
push eax
call fcn.00533d20
add esp, 8
jmp 0x5212f7
mov eax, dword [edi + 8]
lea edx, [esp + 0x30]
mov ecx, dword [edi + 0x10]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [eax + 0x30]
lea eax, [esp + 0x70]
mov byte [esp + 0xf0], 0x45
mov dword [esp + 0xf8], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x78], eax
movups xmmword [esp + 0x60], xmm0
mov byte [esp + 0x70], 0x50
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0xb8], eax
mov byte [esp + 0xb0], 0x4e
mov eax, dword [ecx + 0xc]
mov ecx, esi
mov eax, dword [eax + 0x14]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0x20]
push eax
call fcn.00521cc0
add esp, 4
mov dword [esp + 0x48], eax
lea edx, [esp + 0xf0]
mov byte [esp + 0x30], 0x84
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00521050
add esp, 8
jmp 0x5212f7
lea eax, [esp + 0x20]
mov edx, edi
push eax
mov ecx, esi
call fcn.00521cc0
xor ecx, ecx
add esp, 4
cmp dword [ebp + 0xc], ecx
mov edx, 0x1b
setne cl
push ecx
push dword [ebp + 8]
mov ecx, dword [esp + 0x2c]
push eax
call fcn.00533e70
add esp, 0xc
cmp dword [esp + 0x20], 0
je 0x521334
mov al, byte [esi + 0x15]
mov byte [esp + 0x17], al
cmp al, 8
jae 0x521334
xor ecx, ecx
lea eax, [esi + 0x60]
nop
mov edx, dword [esp + 0x20]
cmp dword [eax + 0x10], edx
je 0x521330
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0x521310
movzx eax, byte [esp + 0x17]
mov dword [esi + eax*4 + 0x18], edx
inc byte [esi + 0x15]
jmp 0x521334
mov byte [eax + 9], 1
mov edx, dword [esp + 0x28]
test edx, edx
je 0x521374
mov al, byte [esi + 0x15]
mov byte [esp + 0x17], al
cmp al, 8
jae 0x521374
xor ecx, ecx
lea eax, [esi + 0x60]
nop dword [eax]
cmp dword [eax + 0x10], edx
je 0x521370
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0x521350
movzx eax, byte [esp + 0x17]
mov dword [esi + eax*4 + 0x18], edx
inc byte [esi + 0x15]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [eax + 9], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret