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

Disassembly:
sub esp, 0xb4
movq xmm0, qword [ecx + 0x298]
mov eax, dword [ecx + 0x2a0]
mov edx, dword [ecx + 0x298]
push ebx
push ebp
movq qword [ecx + 0x14c], xmm0
lea ebx, [ecx + 4]
mov dword [ecx + 0x154], eax
mov eax, dword [ecx + 0x28c]
push esi
push edi
mov dword [esp + 0x68], eax
lea edi, [ecx + 0x254]
lea eax, [ecx + 0x18c]
mov dword [esp + 0xb0], edx
mov esi, edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ebx
mov dword [ebx + 0x154], 0x80000000
mov dword [ebx + 0x158], 0x80000000
mov dword [esp + 0x34], esi
movzx eax, byte [esi + 0x406484]
mov ecx, 9
movzx ebp, byte [esi + 0x406450]
sub ecx, eax
neg ebp
mov dword [esp + 0xac], ecx
mov dword [esp + 0x2c], ebp
cmp ebp, ecx
jg 0x4031d3
lea eax, [esi*8 + 0x4063b8]
mov dword [esp + 0x6c], eax
nop word [eax + eax]
movzx eax, byte [eax]
mov edx, 0x13
add eax, ebp
movzx ecx, byte [eax + edi + 0x14]
movzx eax, byte [esi*8 + 0x4063b9]
sub ecx, eax
movzx eax, byte [esi*8 + 0x4063ba]
cmp ecx, edx
cmovl edx, ecx
add eax, ebp
movzx ecx, byte [eax + edi + 0x14]
movzx eax, byte [esi*8 + 0x4063bb]
sub ecx, eax
movzx eax, byte [esi*8 + 0x4063bc]
cmp ecx, edx
cmovge ecx, edx
add eax, ebp
movzx edx, byte [eax + edi + 0x14]
movzx eax, byte [esi*8 + 0x4063bd]
sub edx, eax
movzx eax, byte [esi*8 + 0x4063be]
cmp edx, ecx
cmovge edx, ecx
add eax, ebp
movzx ecx, byte [eax + edi + 0x14]
movzx eax, byte [esi*8 + 0x4063bf]
sub ecx, eax
cmp ecx, edx
cmovge ecx, edx
lea edx, [ecx - 1]
mov dword [esp + 0x18], edx
test edx, edx
js 0x4031b3
movups xmm0, xmmword [edi]
mov eax, dword [esp + 0x38]
mov ebx, 4
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x18]
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x58], eax
movq xmm0, qword [edi + 0x10]
mov ax, word [edi + 0x1c]
mov dword [esp + 0xb4], esi
lea esi, [esi*8 + 0x4063b8]
mov dword [esp + 0xb8], ebp
movq qword [esp + 0x50], xmm0
mov word [esp + 0x5c], ax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov byte [esp + 0x13], 0
movzx eax, byte [esi + 1]
lea edi, [esp + 0x40]
movzx ecx, byte [esi]
add eax, edx
add edi, eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x54]
or edx, 0xffffffff
add ecx, eax
mov eax, dword [esp + 0x28]
add ecx, ebp
inc byte [edi]
movzx ebp, byte [ecx]
cmp eax, ebp
jge 0x402c93
mov edx, ebp
mov byte [ecx], al
sub edx, eax
dec edx
mov ecx, dword [esp + 0x64]
sub ecx, edx
mov dword [esp + 0x64], ecx
cmp byte [edi], 0xa
jne 0x402cc6
push dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push eax
call fcn.00403380
mov ecx, dword [esp + 0x64]
add ecx, eax
inc dword [esp + 0x60]
mov al, 1
mov dword [esp + 0x64], ecx
mov byte [esp + 0x13], al
jmp 0x402cca
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x18]
add esi, 2
mov ebp, dword [esp + 0x2c]
sub ebx, 1
jne 0x402c61
mov ebx, dword [esp + 0x14]
xor edx, edx
test al, al
movzx edi, byte [esp + 0x55]
mov eax, dword [esp + 0x3c]
cmovne eax, edx
movzx ebp, byte [esp + 0x5b]
mov dword [esp + 0x3c], eax
imul eax, dword [esp + 0x60], 0xd
imul ecx, ecx, 0x1d
movzx edx, byte [esp + 0x59]
movzx esi, byte [esp + 0x58]
add ecx, eax
movzx eax, byte [esp + 0x5c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ecx
movzx ecx, byte [esp + 0x5d]
sub ecx, eax
movzx eax, byte [esp + 0x54]
sub eax, edi
mov ecx, dword [ebx + ecx*4 + 0x50]
add ecx, dword [ebx + eax*4 + 0x50]
movzx eax, byte [esp + 0x56]
movzx ebx, byte [esp + 0x57]
sub edi, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
movzx ecx, byte [esp + 0x5a]
mov dword [esp + 0x28], ebx
mov eax, ecx
mov ebx, dword [esp + 0x14]
sub eax, ebp
sub ebp, dword [esp + 0x20]
mov edi, dword [ebx + edi*4 + 0xf4]
add edi, dword [ebx + eax*4 + 0xf4]
mov eax, edx
sub eax, ecx
mov ecx, ebx
add edi, dword [ecx + eax*4 + 0xf4]
mov eax, esi
sub eax, edx
add edi, dword [ecx + eax*4 + 0xf4]
mov eax, dword [esp + 0x28]
sub eax, esi
add edi, dword [ecx + eax*4 + 0xf4]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x28]
add edi, dword [ecx + eax*4 + 0xf4]
add edi, dword [ecx + ebp*4 + 0xf4]
mov eax, dword [esp + 0x1c]
add eax, edi
mov edi, dword [esp + 0x18]
add eax, dword [esp + 0x30]
mov dword [ecx + 0x15c], eax
mov eax, dword [esp + 0x3c]
test eax, eax
setne byte [esp + 0x13]
test eax, eax
je 0x402e3e
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
add eax, edx
add ecx, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + ebp], bl
movzx eax, byte [ebx*8 + 0x4063ba]
movzx ecx, byte [ebx*8 + 0x4063bb]
add eax, edx
add ecx, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + ebp], bl
movzx eax, byte [ebx*8 + 0x4063bc]
movzx ecx, byte [ebx*8 + 0x4063bd]
add eax, edx
add ecx, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + ebp], bl
movzx eax, byte [ebx*8 + 0x4063be]
movzx ecx, byte [ebx*8 + 0x4063bf]
add eax, edx
add ecx, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + ebp], bl
mov ebx, dword [esp + 0x68]
movq xmm0, qword [esp + 0xb4]
movq xmm1, qword [esp + 0x5c]
movups xmm2, xmmword [esp + 0x4c]
mov dword [esp + 0x1c], ebx
movups xmm3, xmmword [esp + 0x3c]
nop
movzx eax, byte [ebx + 0x406484]
mov ecx, 9
movzx ebp, byte [ebx + 0x406450]
sub ecx, eax
neg ebp
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x24], ebp
cmp ebp, ecx
jg 0x403114
lea esi, [ebx*8 + 0x4063b8]
mov dword [esp + 0x20], esi
movzx eax, byte [esi]
mov edx, 0x13
add eax, ebp
movzx ecx, byte [esp + eax + 0x54]
movzx eax, byte [esi + 1]
sub ecx, eax
movzx eax, byte [ebx*8 + 0x4063ba]
cmp ecx, edx
cmovl edx, ecx
add eax, ebp
movzx ecx, byte [esp + eax + 0x54]
movzx eax, byte [ebx*8 + 0x4063bb]
sub ecx, eax
movzx eax, byte [ebx*8 + 0x4063bc]
cmp ecx, edx
cmovge ecx, edx
add eax, ebp
movzx edx, byte [esp + eax + 0x54]
movzx eax, byte [ebx*8 + 0x4063bd]
sub edx, eax
movzx eax, byte [ebx*8 + 0x4063be]
cmp edx, ecx
cmovge edx, ecx
add eax, ebp
movzx ecx, byte [esp + eax + 0x54]
movzx eax, byte [ebx*8 + 0x4063bf]
sub ecx, eax
cmp ecx, edx
cmovge ecx, edx
lea edx, [ecx - 1]
mov dword [esp + 0x30], edx
test edx, edx
js 0x403102
mov eax, dword [esp + 0x64]
mov ebx, 4
movups xmmword [esp + 0x74], xmm3
mov dword [esp + 0x9c], eax
movups xmmword [esp + 0x84], xmm2
movq qword [esp + 0x94], xmm1
nop
movzx eax, byte [esi + 1]
movzx ecx, byte [esi]
add edx, eax
add ecx, ebp
mov eax, 0xffffffff
inc byte [esp + edx + 0x78]
movzx edi, byte [esp + ecx + 0x8c]
cmp edx, edi
jge 0x402f6c
mov eax, edi
mov byte [esp + ecx + 0x8c], dl
sub eax, edx
dec eax
mov ecx, dword [esp + 0x9c]
sub ecx, eax
mov dword [esp + 0x9c], ecx
cmp byte [esp + edx + 0x78], 0xa
jne 0x402fa8
push dword [esp + 0x74]
lea ecx, [esp + 0x7c]
push edx
call fcn.00403380
mov ecx, dword [esp + 0x9c]
add ecx, eax
inc dword [esp + 0x98]
mov dword [esp + 0x9c], ecx
mov edx, dword [esp + 0x30]
add esi, 2
sub ebx, 1
jne 0x402f40
imul ebx, dword [esp + 0x98], 0xd
mov edx, dword [esp + 0x14]
imul eax, ecx, 0x1d
add ebx, eax
mov dword [esp + 0xa4], ebx
cmp ebx, dword [edx + 0x158]
jl 0x4030f6
movzx esi, byte [esp + 0x94]
movzx ecx, byte [esp + 0x95]
movzx ebp, byte [esp + 0x8d]
sub ecx, esi
movzx eax, byte [esp + 0x8c]
sub eax, ebp
movzx edi, byte [esp + 0x91]
movzx ebx, byte [esp + 0x90]
mov ecx, dword [edx + ecx*4 + 0x50]
add ecx, dword [edx + eax*4 + 0x50]
movzx eax, byte [esp + 0x8e]
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0x8f]
sub ebp, dword [esp + 0x28]
movzx edx, byte [esp + 0x92]
mov dword [esp + 0x30], eax
mov dword [esp + 0xa0], ecx
movzx ecx, byte [esp + 0x93]
mov eax, ecx
sub eax, esi
mov esi, dword [esp + 0x14]
mov esi, dword [esi + eax*4 + 0xf4]
mov eax, dword [esp + 0x14]
add esi, dword [eax + ebp*4 + 0xf4]
mov eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x14]
add esi, dword [ecx + eax*4 + 0xf4]
mov eax, edi
sub eax, edx
mov edx, ecx
add esi, dword [edx + eax*4 + 0xf4]
mov eax, ebx
sub eax, edi
add esi, dword [edx + eax*4 + 0xf4]
mov eax, dword [esp + 0x30]
sub eax, ebx
add esi, dword [edx + eax*4 + 0xf4]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x30]
add esi, dword [edx + eax*4 + 0xf4]
mov eax, dword [esp + 0xa0]
add eax, esi
mov esi, dword [edx + 0x15c]
add eax, dword [esp + 0xa4]
cmp eax, dword [edx + 0x158]
jl 0x4030f2
je 0x4030cc
mov dword [edx + 0x158], eax
jmp 0x4030d4
cmp esi, dword [edx + 0x154]
jle 0x4030f2
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov dword [edx + 0x154], esi
movq qword [edx + 0x148], xmm0
mov dword [edx + 0x150], edi
jmp 0x4030fa
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x24], ebp
cmp ebp, dword [esp + 0xa8]
jle 0x402e95
movzx ebx, byte [ebx + 0x406470]
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esp + 0x68]
jne 0x402e60
cmp byte [esp + 0x13], 0
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
je 0x4031af
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x38]
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
add eax, ebp
add ecx, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + edx], 0x13
movzx eax, byte [esi*8 + 0x4063ba]
movzx ecx, byte [esi*8 + 0x4063bb]
add eax, ebp
add ecx, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + edx], 0x13
movzx eax, byte [esi*8 + 0x4063bc]
movzx ecx, byte [esi*8 + 0x4063bd]
add eax, ebp
add ecx, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + edx], 0x13
movzx eax, byte [esi*8 + 0x4063be]
movzx ecx, byte [esi*8 + 0x4063bf]
add eax, ebp
add ecx, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + edx], 0x13
mov edi, dword [esp + 0x70]
inc ebp
lea eax, [esi*8 + 0x4063b8]
mov dword [esp + 0x2c], ebp
cmp ebp, dword [esp + 0xac]
jle 0x402b80
mov edx, dword [esp + 0xb0]
movzx esi, byte [esi + 0x406470]
mov dword [esp + 0x34], esi
cmp esi, edx
jne 0x402b42
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret