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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp eax, 0x2712
jg 0x5231ce
je 0x5231a8
add eax, 0xfffff05e
cmp eax, 0x2d
ja case.0x5231e3.10009
movzx eax, byte [eax + 0x5232fc]
jmp dword [eax*4 + 0x5232cc]
mov eax, dword [ebp + 0x10]
cmp eax, 0xa
ja 0x523299
mov dword [edi + 0x18], eax
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp eax, 0x64
ja 0x523299
mov dword [edi + 0x38], eax
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x34], eax
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x2c], eax
xor eax, eax
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x1f4
jg 0x523079
cmp ecx, 0xffffffff
jne 0x523299
imul eax, dword [edi + 4], 0x3f7a0
cmp ecx, eax
cmovl eax, ecx
mov dword [edi + 0x28], eax
xor eax, eax
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 8]
cmp eax, 0x10
ja 0x523299
mov dword [edi + 0x3c], ecx
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x3c]
pop edi
mov dword [eax], ecx
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp eax, 1
ja 0x523299
mov dword [edi + 0x44], eax
xor eax, eax
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x523299
mov eax, dword [edi + 0x44]
mov dword [ecx], eax
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push ebx
push esi
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
lea eax, [esi + 0x400]
add eax, edx
imul eax, ecx
add eax, 0x3d
lea ebx, [edi + eax*4]
mov eax, esi
imul eax, ecx
shl eax, 2
mov dword [ebp + 0xc], eax
lea eax, [edx + 0x400]
lea eax, [eax + esi*4]
imul eax, ecx
lea eax, [eax*4 + 0xa8]
push eax
lea eax, [edi + 0x4c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi]
add esp, 0xc
xor ecx, ecx
mov eax, dword [eax + 8]
imul eax, dword [edi + 4]
test eax, eax
jle 0x52315f
mov edx, dword [ebp + 0xc]
nop word [eax + eax]
mov dword [ebx + edx], 0xc1e00000
lea ebx, [ebx + 4]
mov dword [ebx - 4], 0xc1e00000
inc ecx
mov eax, dword [edi]
mov eax, dword [eax + 8]
imul eax, dword [edi + 4]
cmp ecx, eax
jl 0x523140
pop esi
pop ebx
mov dword [edi + 0xd8], 0
xor eax, eax
mov dword [edi + 0x54], 0x3f800000
mov dword [edi + 0x50], 2
mov dword [edi + 0x58], 0x100
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x523299
mov eax, dword [edi + 0x4c]
mov dword [ecx], eax
xor eax, eax
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
ja 0x523299
xor eax, eax
cmp ecx, 1
setle al
mov dword [edi + 0x14], eax
xor eax, eax
test ecx, ecx
sete al
mov dword [edi + 0xc], eax
xor eax, eax
pop edi
pop ebp
ret
add eax, 0xffffd8e8
cmp eax, 0x14
ja case.0x5231e3.10009
movzx eax, byte [eax + 0x523354]
jmp dword [eax*4 + 0x52332c]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
js 0x523299
mov eax, dword [edi]
cmp ecx, dword [eax + 8]
jge 0x523299
mov dword [edi + 0x20], ecx
xor eax, eax
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jl 0x523299
mov eax, dword [edi]
cmp ecx, dword [eax + 8]
jg 0x523299
mov dword [edi + 0x24], ecx
xor eax, eax
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 1]
cmp eax, 1
ja 0x523299
mov dword [edi + 8], ecx
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x30], eax
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5232bc
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x78], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x88], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x98], xmm0
movups xmm0, xmmword [eax + 0x30]
xor eax, eax
movups xmmword [edi + 0xa8], xmm0
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5232bc
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0xb8], eax
xor eax, eax
mov dword [edi + 0xbc], ecx
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x52329f
or eax, 0xffffffff
pop edi
pop ebp
ret
mov eax, dword [edi]
mov dword [ecx], eax
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x40], eax
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [edi + 0xec], eax
xor eax, eax
pop edi
pop ebp
ret
mov eax, 0xfffffffb
pop edi
pop ebp
ret