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

Disassembly:
sub esp, 0x40
mov ecx, dword [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x50]
push ebp
mov eax, dword [ecx]
mov ebp, dword [ecx + 8]
push esi
mov esi, dword [esp + 0x60]
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x14], ebp
cmp edi, eax
jae 0x540757
mov edx, dword [esp + 0x60]
cmp edx, edi
jbe 0x540757
cmp edx, eax
ja 0x540757
mov eax, dword [ecx + 4]
cmp ebx, eax
jae 0x540757
cmp esi, ebx
jbe 0x540757
cmp esi, eax
ja 0x540757
lea esi, [ecx + 0xc]
mov dword [esp + 0x40], ebx
mov ecx, dword [esi]
xor edx, edx
mov eax, ebx
mov dword [esp + 0x2c], esi
div ecx
xor edx, edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x28], eax
mov eax, edi
div ebp
mov esi, eax
mov dword [esp + 0x4c], esi
nop
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], esi
mov esi, edi
cmp ebx, eax
jne 0x5400bc
xor edx, edx
mov dword [esp + 0x24], esi
div ecx
mov eax, ecx
sub eax, edx
jmp 0x5400c2
mov eax, ecx
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x64]
sub ecx, eax
sub edx, ebx
cmp eax, edx
cmovb edx, eax
mov eax, ebx
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x10], edx
mov edx, ebp
imul edx, ecx
mov ecx, eax
imul ecx, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
mov ebx, ecx
mov dword [esp + 0x1c], ebx
cmp esi, edi
jne 0x540107
xor edx, edx
mov eax, edi
div ebp
mov eax, ebp
sub eax, edx
jmp 0x54010f
mov eax, ebp
mov dword [esp + 0x1c], ecx
mov ebx, ecx
mov edx, dword [esp + 0x54]
mov edi, ebp
mov ebp, dword [esp + 0x60]
sub edi, eax
sub ebp, esi
cmp eax, ebp
mov ecx, dword [edx + 0x10]
cmovb ebp, eax
imul ecx, dword [esp + 0x28]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x18], ebp
add ecx, dword [esp + 0x20]
cmp dword [esp + 0x78], 0
mov esi, dword [eax + ecx*4]
je 0x540492
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov eax, edx
imul eax, dword [esp + 0x30]
imul ecx, dword [esp + 0x6c]
add ecx, eax
mov eax, dword [esp + 0x68]
lea ebx, [eax + ecx*4]
test esi, esi
jne 0x540206
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x10]
cmp eax, 1
jne 0x5401b6
test edx, edx
je 0x540484
mov eax, dword [esp + 0x70]
lea edi, [ebp*4]
mov esi, edx
lea ebp, [eax*4]
push edi
push 0
push ebx
call fcn.004314a0
add esp, 0xc
add ebx, ebp
sub esi, 1
jne 0x540195
mov ebx, dword [esp + 0x70]
imul ebx, dword [esp + 0x30]
jmp 0x5406eb
test edx, edx
je 0x540484
mov edi, dword [esp + 0x70]
mov esi, edx
shl edi, 2
test ebp, ebp
je 0x5401f1
lea edx, [eax*4]
mov ecx, ebp
mov eax, ebx
nop word [eax + eax]
mov dword [eax], 0
add eax, edx
sub ecx, 1
jne 0x5401e0
mov eax, dword [esp + 0x6c]
add ebx, edi
sub esi, 1
jne 0x5401c7
mov ebx, dword [esp + 0x70]
imul ebx, dword [esp + 0x30]
jmp 0x5406eb
mov eax, dword [esp + 0x34]
add eax, edi
mov edi, dword [esp + 0x6c]
lea esi, [esi + eax*4]
cmp edi, 1
jne 0x5402a8
mov edx, dword [esp + 0x10]
test edx, edx
je 0x540484
cmp ebp, 4
jne 0x540264
mov eax, dword [esp + 0x70]
lea ecx, [eax*4]
mov eax, dword [esp + 0x14]
lea edx, [eax*4]
mov eax, dword [esp + 0x10]
movups xmm0, xmmword [esi]
add esi, edx
movups xmmword [ebx], xmm0
add ebx, ecx
sub eax, 1
jne 0x540247
mov ebx, dword [esp + 0x70]
imul ebx, dword [esp + 0x30]
jmp 0x5406eb
shl ebp, 2
mov edi, edx
nop dword [eax]
push ebp
push esi
push ebx
call fcn.00434c20
mov ecx, dword [esp + 0x7c]
add esp, 0xc
lea eax, [ecx*4]
mov ecx, dword [esp + 0x14]
add ebx, eax
lea eax, [ecx*4]
add esi, eax
sub edi, 1
jne 0x540270
mov ebx, dword [esp + 0x70]
imul ebx, dword [esp + 0x30]
jmp 0x5406eb
cmp ebp, 1
jne 0x5402eb
mov eax, dword [esp + 0x10]
test eax, eax
je 0x540484
mov ecx, dword [esp + 0x14]
shl edx, 2
lea edi, [ecx*4]
mov ecx, eax
nop dword [eax]
mov eax, dword [esi]
add esi, edi
mov dword [ebx], eax
add ebx, edx
sub ecx, 1
jne 0x5402d0
mov ebx, dword [esp + 0x70]
imul ebx, dword [esp + 0x30]
jmp 0x5406eb
mov edx, dword [esp + 0x10]
cmp edx, 1
jne 0x540360
cmp edi, 2
jne 0x540360
xor ecx, ecx
and ebp, 0xfffffffc
jbe 0x540335
dec ebp
lea edx, [esi + 8]
shr ebp, 2
lea edi, [ebx + 0x10]
inc ebp
lea ecx, [ebp*4]
mov eax, dword [edx - 8]
lea edi, [edi + 0x20]
mov dword [edi - 0x30], eax
lea edx, [edx + 0x10]
mov eax, dword [edx - 0x14]
mov dword [edi - 0x28], eax
mov eax, dword [edx - 0x10]
mov dword [edi - 0x20], eax
mov eax, dword [edx - 0xc]
mov dword [edi - 0x18], eax
sub ebp, 1
jne 0x540312
mov ebp, dword [esp + 0x18]
cmp ecx, ebp
jae 0x540484
lea edx, [ebx + ecx*8]
mov eax, dword [esi + ecx*4]
lea edx, [edx + 8]
inc ecx
mov dword [edx - 8], eax
cmp ecx, ebp
jb 0x540344
mov ebx, dword [esp + 0x70]
imul ebx, dword [esp + 0x30]
jmp 0x5406eb
cmp ebp, 8
jb 0x540425
cmp edi, 8
jne 0x540425
test edx, edx
je 0x540484
mov eax, ebp
mov dword [esp + 0x1c], edx
and eax, 0xfffffffc
mov dword [esp + 0x38], eax
xor edx, edx
test eax, eax
je 0x5403d5
lea ebp, [eax - 1]
shr ebp, 2
lea ecx, [esi + 8]
inc ebp
lea edi, [ebx + 0x40]
lea edx, [ebp*4]
mov eax, dword [ecx - 8]
lea edi, [edi + 0x80]
mov dword [edi - 0xc0], eax
lea ecx, [ecx + 0x10]
mov eax, dword [ecx - 0x14]
mov dword [edi - 0xa0], eax
mov eax, dword [ecx - 0x10]
mov dword [edi - 0x80], eax
mov eax, dword [ecx - 0xc]
mov dword [edi - 0x60], eax
sub ebp, 1
jne 0x5403a1
mov ebp, dword [esp + 0x18]
cmp edx, ebp
jae 0x5403ee
mov ecx, edx
shl ecx, 5
add ecx, ebx
nop dword [eax]
mov eax, dword [esi + edx*4]
lea ecx, [ecx + 0x20]
inc edx
mov dword [ecx - 0x20], eax
cmp edx, ebp
jb 0x5403e0
mov eax, dword [esp + 0x70]
lea ecx, [eax*4]
mov eax, dword [esp + 0x14]
add ebx, ecx
lea ecx, [eax*4]
mov eax, dword [esp + 0x38]
add esi, ecx
sub dword [esp + 0x1c], 1
jne 0x540387
mov ebx, dword [esp + 0x70]
imul ebx, dword [esp + 0x30]
jmp 0x5406eb
test edx, edx
je 0x540484
mov eax, dword [esp + 0x70]
mov ebp, edx
shl eax, 2
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
nop
xor ecx, ecx
test edx, edx
je 0x540468
mov ebp, dword [esp + 0x18]
mov edx, ebx
shl edi, 2
nop
mov eax, dword [esi + ecx*4]
inc ecx
mov dword [edx], eax
add edx, edi
cmp ecx, ebp
jb 0x540450
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
add ebx, eax
lea ecx, [edi*4]
mov edi, dword [esp + 0x6c]
add esi, ecx
sub ebp, 1
mov dword [esp + 0x1c], ebp
jne 0x540440
mov ebx, dword [esp + 0x70]
imul ebx, dword [esp + 0x30]
jmp 0x5406eb
test esi, esi
jne 0x5404d6
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
imul eax, dword [edx + 8]
shl eax, 2
push eax
push 1
call fcn.0050bc50
mov esi, eax
add esp, 8
test esi, esi
je 0x540740
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx + 0x10]
imul edx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x18]
add edx, dword [esp + 0x20]
mov dword [ecx + edx*4], esi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
add eax, edi
mov edx, dword [esp + 0x68]
lea esi, [esi + eax*4]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x58]
imul eax, ecx
add eax, ebx
lea ebp, [edx + eax*4]
cmp ecx, 1
jne 0x54057f
mov edi, dword [esp + 0x10]
test edi, edi
je 0x5406eb
mov eax, dword [esp + 0x18]
cmp eax, 4
jne 0x540545
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
mov eax, dword [esp + 0x70]
lea edx, [eax*4]
mov eax, edi
nop dword [eax]
movups xmm0, xmmword [ebp]
add ebp, edx
movups xmmword [esi], xmm0
add esi, ecx
sub eax, 1
jne 0x540530
jmp 0x5406eb
lea ebx, [eax*4]
nop dword [eax]
push ebx
push ebp
push esi
call fcn.00434c20
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [ecx*4]
mov ecx, dword [esp + 0x70]
add esi, eax
lea eax, [ecx*4]
add ebp, eax
sub edi, 1
jne 0x540550
jmp 0x5406e7
mov edi, dword [esp + 0x18]
cmp edi, 1
jne 0x5405c3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5406eb
mov ecx, dword [esp + 0x70]
lea edx, [ecx*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx*4]
mov ecx, eax
nop dword [eax]
mov eax, dword [ebp]
add ebp, edx
mov dword [esi], eax
add esi, edi
sub ecx, 1
jne 0x5405b0
jmp 0x5406eb
cmp edi, 8
jb 0x540680
cmp ecx, 8
jne 0x540680
mov edx, dword [esp + 0x10]
test edx, edx
je 0x5406eb
mov eax, edi
mov dword [esp + 0x38], edx
and eax, 0xfffffffc
mov dword [esp + 0x44], eax
nop
xor edx, edx
test eax, eax
je 0x540641
lea ebx, [eax - 1]
shr ebx, 2
lea ecx, [esi + 8]
inc ebx
lea edi, [ebp + 0x40]
lea edx, [ebx*4]
nop word [eax + eax]
mov eax, dword [edi - 0x40]
lea edi, [edi + 0x80]
mov dword [ecx - 8], eax
lea ecx, [ecx + 0x10]
mov eax, dword [edi - 0xa0]
mov dword [ecx - 0x14], eax
mov eax, dword [edi - 0x80]
mov dword [ecx - 0x10], eax
mov eax, dword [edi - 0x60]
mov dword [ecx - 0xc], eax
sub ebx, 1
jne 0x540610
mov edi, dword [esp + 0x18]
cmp edx, edi
jae 0x540655
mov eax, edx
shl eax, 5
add eax, ebp
mov ecx, dword [eax]
lea eax, [eax + 0x20]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jb 0x540648
mov eax, dword [esp + 0x70]
lea ecx, [eax*4]
mov eax, dword [esp + 0x14]
add ebp, ecx
lea ecx, [eax*4]
mov eax, dword [esp + 0x44]
add esi, ecx
sub dword [esp + 0x38], 1
jne 0x5405f0
jmp 0x5406e7
mov edx, dword [esp + 0x10]
test edx, edx
je 0x5406ef
mov eax, dword [esp + 0x70]
mov ebx, edx
mov edx, dword [esp + 0x14]
shl eax, 2
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ebx
nop dword [eax]
xor ecx, ecx
test edi, edi
je 0x5406d3
mov eax, dword [esp + 0x6c]
mov edx, ebp
mov ebx, dword [esp + 0x18]
lea edi, [eax*4]
mov eax, dword [edx]
add edx, edi
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x5406b7
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [edx*4]
add ebp, eax
add esi, ecx
sub ebx, 1
mov dword [esp + 0x38], ebx
jne 0x5406a0
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
add esi, dword [esp + 0x18]
inc dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], esi
cmp esi, dword [esp + 0x60]
jb 0x5400f3
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add ebx, edx
inc dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x40], ebx
mov ecx, dword [eax]
mov dword [esp + 0x2c], esi
cmp ebx, dword [esp + 0x64]
jae 0x54074a
mov esi, dword [esp + 0x4c]
jmp 0x5400a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret