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

Disassembly:
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
mov eax, edx
mov edx, dword [esp + 0xb4]
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0xbc]
cmp ecx, 0x10
mov dword [esp + 0xc], edi
sete bl
mov esi, dword [edi]
inc ebx
imul ebx, edx
cmp dword [esp + 0xc4], 0
jne 0x100354c6
push dword [esp + 0xc0]
push ecx
push dword [esi + 4]
mov ecx, edi
push dword [esi]
push edx
push dword [esp + 0xc8]
mov edx, eax
call fcn.10034440
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 0xa4
ret
push ebp
mov ebp, dword [esi + 4]
mov edx, ebp
mov esi, dword [esi]
mov ecx, esi
push 0
push ebx
call fcn.1002d3f0
add esp, 8
test eax, eax
je 0x10035773
imul esi, ebp
imul esi, ebx
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
je 0x10035773
mov ecx, dword [esp + 0xb8]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
movaps xmm0, xmmword [0x1025b350]
xor edx, edx
mov edi, dword [edi]
movups xmmword [esp + 0x44], xmm0
mov dword [esp + 0x70], 2
movaps xmm0, xmmword [0x1025b310]
movups xmmword [esp + 0x98], xmm0
mov dword [esp + 0x74], 2
movaps xmm0, xmmword [0x1025b3a0]
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0x78], 1
mov ebp, dword [esp + eax + 0x60]
mov ecx, ebp
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0
sub ecx, dword [esp + eax + 0x44]
mov eax, dword [edi]
dec ecx
add eax, ecx
movaps xmm0, xmmword [0x1025b3b0]
div ebp
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x8c], 4
mov dword [esp + 0x90], 2
mov dword [esp + 0x94], 2
mov dword [esp + 0xa8], 2
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 1
mov dword [esp + 0x18], eax
movups xmmword [esp + 0x7c], xmm0
mov esi, dword [esp + ecx + 0x7c]
mov dword [esp + 0x2c], esi
test eax, eax
je 0x10035725
mov ebp, dword [esp + ecx + 0x98]
lea eax, [esi - 1]
mov ecx, dword [edi + 4]
xor edx, edx
sub ecx, ebp
mov dword [esp + 0x1c], ebp
add eax, ecx
div esi
mov esi, eax
mov dword [esp + 0x34], esi
test esi, esi
je 0x10035725
mov edi, dword [edi + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc0]
push dword [esp + 0xc4]
mov edx, dword [esp + 0x24]
imul edi, eax
push ecx
push esi
push eax
push dword [esp + 0xcc]
imul edi, ecx
push dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
add edi, 7
sar edi, 3
inc edi
imul edi, esi
mov dword [esp + 0x58], edi
call fcn.10034440
add esp, 0x18
test eax, eax
je 0x10035742
test esi, esi
jle 0x1003570b
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov edi, dword [esp + 0x2c]
mov eax, edx
imul eax, ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], eax
nop dword [eax]
test edx, edx
jle 0x100356ee
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, edx
mov eax, dword [esi]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x38], eax
add esi, ecx
nop word [eax + eax]
mov eax, dword [eax]
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push ebx
push esi
add eax, dword [esp + ecx + 0x4c]
add eax, edi
imul eax, ebx
add eax, dword [esp + 0x30]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
add esi, ebx
add edi, dword [esp + eax + 0x60]
mov eax, dword [esp + 0x38]
sub ebp, 1
jne 0x100356a0
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
add ebp, edi
add ecx, eax
sub esi, 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
jne 0x10035680
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add dword [esp + 0x24], edi
add esp, 4
sub dword [esp + 0x24], edi
jmp 0x10035729
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
cmp eax, 0x1c
jge 0x1003575c
mov edi, dword [esp + 0x10]
jmp 0x10035512
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa4
ret
mov eax, dword [esp + 0x28]
pop ebp
pop edi
mov dword [esi + 0xc], eax
mov eax, 1
pop esi
pop ebx
add esp, 0xa4
ret
mov ecx, dword [0x102c23c0]
mov eax, dword fs:[0x2c]
pop ebp
pop edi
pop esi
mov eax, dword [eax + ecx*4]
pop ebx
mov dword [eax + 0xc], str.outofmem
xor eax, eax
add esp, 0xa4
ret