Function at 0x4377e0
Capabilities:
Encrypt data using speck

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [ecx + 0x14914]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 0x14910]
add edx, 0x4e20
mov dword [ebp - 0xc], ecx
push esi
mov esi, dword [ecx + 0x14908]
adc eax, 0
push edi
mov edi, dword [ecx + 0x1490c]
cmp edi, eax
jb 0x43795d
ja 0x437837
cmp esi, edx
jbe 0x43795d
cmp byte [0x45ebe8], 0
je 0x43784e
mov eax, dword [0x45ebec]
cmp dword [eax], 0
jne 0x4378e3
cmp byte [0x45ed12], 0
jne 0x4378e3
mov dword [ecx + 0x14910], esi
mov esi, dword [ecx + 0x148f8]
mov dword [ecx + 0x14914], edi
mov edi, dword [ecx + 0x148fc]
call fcn.00401a40
sub eax, esi
mov ecx, eax
sbb edx, edi
call fcn.00442520
cvtsd2ss xmm0, xmm0
xorps xmm1, xmm1
divss xmm0, dword [0x452228]
cvtss2sd xmm0, xmm0
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x45ed28]
comiss xmm1, xmm0
jbe 0x4378f1
mulss xmm0, dword [0x4521f8]
mulss xmm0, dword [0x45ed38]
comiss xmm1, xmm0
ja 0x4378e3
cmp byte [0x45ed3c], 0
jne 0x4378e3
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x14928], 0
je 0x4378e3
mov eax, dword [ecx + 0x14930]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x5dc
jle 0x4378f4
mov eax, 0x7918
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0xc]
mov esi, dword [ecx + 0x14900]
mov edi, dword [ecx + 0x14904]
call fcn.00401a40
sub eax, esi
mov ecx, eax
sbb edx, edi
call fcn.00442520
cvtsd2ss xmm0, xmm0
divss xmm0, dword [0x452228]
cvtss2sd xmm0, xmm0
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x4521dc]
jbe 0x437958
call fcn.00401a40
mov esi, dword [ebp - 0xc]
push 1
mov dword [esi + 0x14904], edx
lea ecx, [esi + 0x148f8]
mov edx, 0x5e080c
mov dword [esi + 0x14900], eax
call fcn.004343a0
add esp, 4
jmp 0x43795f
mov esi, dword [ebp - 0xc]
jmp 0x43795f
mov esi, ecx
mov ecx, dword [ebx + 0x18]
mov edx, 1
mov eax, dword [ecx]
mov dword [ebp - 0x40], eax
cmp eax, dword [0x5e080c]
jne 0x4379b5
mov eax, dword [ebx + 0x14]
mov ecx, 4
movzx eax, al
sub ecx, eax
mov eax, dword [ebx + 8]
cmp eax, ecx
jle 0x4379b5
lea ecx, [ebp - 0x40]
add eax, 0xfffffffc
push ecx
push 0
push dword [ebx + 0x10]
cmp eax, edx
mov ecx, esi
push dword [ebx + 0xc]
cmovl eax, edx
mov edx, dword [ebp - 8]
push eax
call fcn.004377e0
add esp, 0x14
cmp eax, 0x7918
je 0x4378e3
imul edi, dword [ebp - 8], 0x2b8
add edi, esi
cmp dword [ebp - 8], 2
mov dword [ebp - 0x14], edi
mov eax, dword [edi - 0x1f4]
lea esi, [edi + 0xa0]
mov dword [ebp - 4], esi
mov dword [ebp - 0x44], eax
jl 0x4379e4
mov eax, dword [edi - 0x4ac]
mov dword [ebp - 0x3c], eax
jmp 0x4379eb
mov dword [ebp - 0x3c], 0
lea eax, [edi - 0x218]
mov dword [edi + 0x2a8], 0
mov cl, byte [eax + 0x18]
mov byte [ebp - 0x38], cl
mov ecx, edi
push eax
mov dword [ebp - 0x54], eax
call fcn.00440ae0
cmp dword [edi], 0
jne 0x437a22
mov eax, dword [ebp - 8]
add eax, 0xfffff82e
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 8]
mov edx, dword [ebx + 0xc]
lea eax, [ecx - 0x7d1]
cmp edx, eax
cmovl edx, eax
mov dword [ebx + 0xc], edx
cmp edx, dword [ebx + 0x10]
jge 0x438674
mov eax, 0x7d1
sub eax, ecx
mov dword [ebp - 0x60], eax
cmp edx, eax
jge 0x438674
cmp ecx, 2
jle 0x437af1
cmp dword [0x45ed58], 2
jne 0x437af1
lea eax, [edi - 0x218]
mov ecx, 0x45ed4c
push eax
call fcn.004013e0
test al, al
je 0x437af1
lea edx, [ebp - 0x70]
lea ecx, [edi - 0x218]
call fcn.00401460
xor eax, eax
cmp dword [ebx + 8], 3
setle al
push eax
xor eax, eax
cmp byte [ebp - 0x38], al
setne al
push eax
mov eax, edx
push eax
mov eax, dword [0x45ed60]
push eax
mov eax, dword [eax]
call eax
add esp, 0x10
cmp eax, 1
jne 0x437b43
mov eax, dword [ebp - 0xc]
lea ecx, [edi - 0x218]
add dword [eax + 0x14918], 1
adc dword [eax + 0x1491c], 0
xor eax, eax
cmp byte [ebp - 0x38], 1
sete al
inc eax
push eax
call fcn.00433be0
mov ecx, eax
neg ecx
cmp byte [ebp - 0x38], 1
cmove ecx, eax
cmp ecx, dword [ebx + 0x10]
jge 0x4385fa
mov ecx, dword [ebp - 0x40]
mov eax, dword [0x5e080c]
cmp ecx, eax
jne 0x437b11
cmp dword [edi + 4], 0
jne 0x437b11
mov edx, dword [edi + 0xc0]
cmp edx, eax
cmovne ecx, edx
mov dword [ebp - 0x40], ecx
xor eax, eax
mov dword [ebp - 0x50], eax
cmp ecx, dword [0x5e080c]
je 0x437b79
mov esi, dword [edi]
xor edx, edx
test esi, esi
jle 0x437b79
lea eax, [edi + 0xc]
nop dword [eax]
cmp dword [eax], ecx
je 0x437b64
inc edx
add eax, 4
cmp edx, esi
jl 0x437b30
mov edi, dword [ebp - 0x14]
xor eax, eax
jmp 0x437b79
cmp eax, 3
jne 0x437af1
mov eax, dword [ebp - 0xc]
add dword [eax + 0x14918], 1
adc dword [eax + 0x1491c], 0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [edi + 0xc]
mov dword [edi + 0xc], ecx
mov edi, dword [ebp - 0x14]
mov dword [edi + edx*4 + 0xc], eax
mov eax, 1
mov dword [ebp - 0x50], eax
mov edx, dword [edi]
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], edx
test edx, edx
jle 0x438627
mov dword [ebp - 0x48], 0x708
mov dword [ebp - 0x4c], 0xfffff8f8
cmp ecx, eax
jne 0x437d69
mov ecx, dword [edi + 4]
inc eax
cmp ecx, eax
jle 0x437c1b
mov edx, dword [ebp - 0x34]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, ecx
jge 0x437d69
lea edi, [edi + edx*4]
add edi, 0xc
mov dword [ebp - 0x2c], edi
mov eax, dword [edi]
mov esi, edx
mov ecx, eax
shr ecx, 0xa
and ecx, 0xf
mov dword [ebp - 0x10], ecx
test edx, edx
jle 0x437c00
mov edx, edi
nop dword [eax]
mov edi, dword [edx - 4]
mov ecx, edi
shr ecx, 0xa
and ecx, 0xf
cmp dword [ebp - 0x10], ecx
jbe 0x437bfa
mov dword [edx], edi
dec esi
sub edx, 4
test esi, esi
jg 0x437be0
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
inc edx
add edi, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], edi
mov dword [ecx + esi*4 + 0xc], eax
cmp edx, dword [ecx + 4]
jl 0x437bc8
jmp 0x437d6c
test ecx, ecx
jne 0x437d69
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
cmp ecx, edx
jge 0x437cef
mov eax, dword [ebp - 0x3c]
lea edi, [edi + ecx*4]
add eax, 0x201
shl eax, 9
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x44]
shl eax, 9
add edi, 0xc
mov dword [ebp - 0x10], eax
nop
mov edx, dword [edi]
mov eax, edx
and eax, 0x1f
lea esi, [eax*4]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x44fd80]
test dword [eax], ecx
je 0x437c7a
mov eax, dword [eax + 8]
and eax, ecx
neg eax
sbb eax, eax
and eax, 4
inc eax
jmp 0x437c92
test dword [eax + 4], ecx
je 0x437c90
mov eax, dword [eax + 8]
and eax, ecx
neg eax
sbb eax, eax
and eax, 4
add eax, 2
jmp 0x437c92
xor eax, eax
mov eax, dword [eax*4 + 0x4519ec]
add edi, 4
shr edx, 0xf
and edx, 3
add edx, esi
mov esi, dword [ebp - 0xc]
lea edx, [eax + edx*4]
mov eax, dword [ebp - 0x10]
add eax, edx
movsx ecx, word [esi + eax*2 + 0x18f18]
mov eax, dword [ebp - 0x1c]
add eax, edx
movsx eax, word [esi + eax*2 + 0x18b18]
add ecx, eax
movsx eax, word [esi + edx*2 + 0x18b18]
mov edx, dword [ebp - 0x18]
add ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x100], ecx
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, edx
jl 0x437c50
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, edx
jge 0x437d69
lea esi, [ecx + 3]
lea esi, [edi + esi*4]
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp + ecx*4 - 0x100]
mov eax, dword [esi]
mov dword [ebp - 0x2c], edx
mov edx, ecx
mov dword [ebp - 0x28], eax
cmp ecx, dword [ebp - 0x34]
jle 0x437d4c
mov eax, dword [ebp - 0x2c]
nop dword [eax]
mov edi, dword [ebp + edx*4 - 0x104]
cmp eax, edi
jle 0x437d40
mov ecx, dword [esi - 4]
mov dword [ebp + edx*4 - 0x100], edi
dec edx
mov dword [esi], ecx
sub esi, 4
cmp edx, dword [ebp - 0x34]
jg 0x437d20
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
inc ecx
mov dword [edi + edx*4 + 0xc], eax
mov eax, dword [ebp - 0x2c]
add esi, 4
mov dword [ebp + edx*4 - 0x100], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], esi
cmp ecx, dword [ebp - 0x18]
jl 0x437d00
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 8], 1
mov edx, dword [ebp - 0x34]
mov esi, dword [ecx + edx*4 + 0xc]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], esi
jne 0x437e25
cmp byte [ebp - 0x38], 1
mov ecx, dword [ebx + 0xc]
je 0x437d8e
neg ecx
mov eax, dword [ebx + 0x18]
mov edi, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x14928], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xbb8
jge 0x437dfe
mov edi, dword [edi + 0x14930]
mov eax, ecx
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1a
jl 0x437dd7
mov eax, dword [ebp - 0xc]
mov dword [0x45ed38], 0x3fe66666
mov edi, dword [eax + 0x14930]
mov eax, ecx
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jl 0x437def
mov dword [0x45ed38], 0x40200000
cmp dword [ebp - 0x30], 0
mov edi, dword [ebp - 0xc]
jle 0x437dfe
mov dword [edi + 0x14930], ecx
cmp dword [edi + 0x14920], 0xb
jle 0x437e28
cmp byte [0x45ed12], 0
jne 0x437e28
push 1
lea ecx, [edi + 0x148f8]
lea edx, [ebp - 0x18]
call fcn.004343a0
add esp, 4
jmp 0x437e28
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 4]
movups xmm0, xmmword [eax]
movups xmmword [edx], xmm0
movups xmm0, xmmword [eax + 0x10]
mov eax, esi
and eax, 0x1f
shl eax, 2
movups xmmword [edx + 0x10], xmm0
mov dword [ebp - 0x18], eax
mov ecx, dword [eax + 0x44fd80]
test dword [edx], ecx
je 0x437e63
mov eax, dword [edx + 8]
and eax, ecx
neg eax
sbb eax, eax
and eax, 4
inc eax
mov dword [ebp - 0x10], eax
jmp 0x437e83
test dword [edx + 4], ecx
je 0x437e7c
mov eax, dword [edx + 8]
and eax, ecx
neg eax
sbb eax, eax
and eax, 4
add eax, 2
mov dword [ebp - 0x10], eax
jmp 0x437e83
mov dword [ebp - 0x10], 0
push dword [ebp - 8]
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00438800
mov dword [ebp - 0x5c], eax
add esp, 4
add dword [edi + 0x14908], 1
mov eax, dword [ebp - 4]
adc dword [edi + 0x1490c], 0
mov edi, dword [0x460dc8]
add edi, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [eax + edi*8 + 0x14b18], ecx
mov ecx, esi
mov dword [eax + edi*8 + 0x14b1c], edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
shr ecx, 0xf
and ecx, 3
add ecx, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x190], esi
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax*4 + 0x4519ec]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc4], eax
mov eax, ecx
mov dword [eax + 0x560], 0
cmp dword [edx + 4], 0
je 0x438606
cmp dword [edx], 0
je 0x438606
mov ecx, dword [ebx + 8]
mov edi, 0xffffd8f1
dec ecx
cmp dword [eax + 4], 0
mov dword [ebp - 0x28], ecx
jle 0x437f47
cmp byte [ebx + 0x14], 0
jne 0x437f3f
cmp dword [ebp - 8], 1
jle 0x437f47
cmp dword [eax - 0x2b4], 0
jle 0x437f47
mov eax, dword [ebx + 8]
mov dword [ebp - 0x28], eax
jmp 0x437f64
test ecx, ecx
jne 0x437f64
push dword [ebp - 0x38]
mov ecx, edx
call fcn.00409360
mov ecx, dword [ebp - 0x28]
test eax, eax
mov edx, dword [ebp - 4]
cmovne ecx, dword [ebx + 8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 8]
cmp ecx, 1
jle 0x438033
cmp byte [edx + 0x19], 0x4e
jbe 0x438033
movzx eax, byte [edx + 0x18]
mov ecx, edx
push eax
call fcn.00409360
test eax, eax
jne 0x438030
xor edi, edi
mov eax, dword [ebx + 0xc]
cmp edi, eax
jle 0x438011
mov edx, dword [ebx + 0x18]
mov dword [ebx + 0xc], edi
mov dword [edx], esi
cmp edi, dword [ebx + 0x10]
jge 0x4385c3
cmp byte [ebx + 0x14], 0
je 0x438011
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0xc8]
mov dword [edx], esi
mov dword [edx + 0x1e0], 1
lea edi, [eax + 0x380]
mov eax, dword [edi + 0x1e0]
test eax, eax
jle 0x437ff9
shl eax, 2
push eax
lea eax, [edx + 4]
push edi
push eax
call fcn.0040c210
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [edi + 0x1e0]
add edx, 0xc8
add dword [edx + 0x1e0], eax
cmp dword [ebp - 8], 1
jne 0x438011
mov edi, dword [ebp - 0xc]
mov ecx, 0x79
add edi, 0x14934
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
mov edx, dword [edi]
mov dword [ebp - 0x18], edx
cmp ecx, edx
jge 0x438627
mov eax, dword [ebp - 0x50]
jmp 0x437ba0
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x28], 1
jl 0x43851d
cmp ecx, 1
jle 0x4380b8
mov eax, dword [ebp - 4]
mov ecx, dword [0x460dc8]
mov edx, dword [ebp - 8]
add edx, ecx
movzx eax, byte [eax + 0x19]
sub ecx, eax
mov dword [ebp - 0x10], edx
add ecx, dword [ebp - 8]
xor eax, eax
test ecx, ecx
cmovle ecx, eax
xor edx, ecx
test dl, 1
lea edx, [ecx + 1]
cmove edx, ecx
mov ecx, dword [ebp - 0x10]
sub ecx, 2
mov dword [ebp - 0x10], ecx
cmp edx, ecx
jge 0x4380b5
mov eax, dword [ebp - 0xc]
lea eax, [eax + edx*8]
add eax, 0x14b18
mov ecx, dword [ebp - 4]
mov esi, dword [ecx + 0x10]
cmp dword [eax], esi
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
jne 0x4380ab
mov ecx, dword [ebp - 4]
mov esi, dword [ecx + 0x14]
cmp dword [eax + 4], esi
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
je 0x437f8e
add edx, 2
add eax, 0x10
cmp edx, ecx
jl 0x438086
mov ecx, dword [ebp - 8]
cmp ecx, 0x78
jge 0x43851d
cmp byte [0x45ed13], 0
mov eax, dword [0x5e080c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0
je 0x43818d
movzx eax, byte [0x45ed14]
mov ecx, 0x45ed18
push eax
push dword [ebp - 4]
call fcn.00401980
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
mov cl, 0x20
call fcn.0042da70
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], eax
jne 0x438172
xor eax, eax
cmp eax, edx
jne 0x438172
mov edx, ecx
movsx eax, byte [edx + 0xc]
cmp eax, dword [ebp - 0x28]
jl 0x438165
movzx eax, word [edx + 8]
movsx ecx, ax
cmp ax, word [ebp - 0x48]
jle 0x438132
sub ecx, dword [ebp - 8]
jmp 0x43813b
cmp ax, word [ebp - 0x4c]
jge 0x43813b
add ecx, dword [ebp - 8]
movzx eax, byte [edx + 0xd]
shr eax, 6
sub eax, 0
je 0x438163
sub eax, 1
je 0x43815b
sub eax, 1
jne 0x438165
mov eax, dword [ebx + 0x10]
cwde
cmp ecx, eax
jl 0x438165
jmp 0x438163
mov eax, dword [ebx + 0xc]
cwde
cmp ecx, eax
jg 0x438165
mov edi, ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
movsx eax, word [edx + 0xa]
mov dword [ebp - 0x24], eax
cmp byte [ebx + 0x14], 0
mov ecx, dword [ebp - 8]
je 0x438485
cmp ecx, 4
jge 0x438485
mov edi, 0xffffd8f1
cmp dword [ebp - 0x28], 2
jle 0x43835e
cmp ecx, 3
jl 0x43835e
mov al, byte [0x45ed5c]
mov ecx, dword [ebp - 4]
test al, al
je 0x4384af
movsx edx, byte [ecx + 0x1b]
cmp edx, dword [0x45ed50]
jg 0x4384af
movsx ecx, byte [ecx + 0x1a]
cmp ecx, dword [0x45ed54]
jg 0x4384b7
mov eax, dword [0x45ed58]
test eax, eax
je 0x438226
cmp eax, 1
je 0x438226
cmp eax, 2
jne 0x4384a7
lea eax, [ecx + edx]
mov ecx, dword [ebp - 4]
cmp eax, dword [0x45ed4c]
jg 0x43849f
mov al, byte [ecx + 0x18]
push eax
mov dword [ebp - 0x18], eax
call fcn.00409360
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x43849f
mov eax, dword [ebp - 0x18]
xor al, 1
movzx eax, al
push eax
call fcn.00409360
test eax, eax
jne 0x4384a7
mov edx, dword [ebp - 0x24]
cmp edx, 0xffffd8f1
jne 0x438252
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add eax, 0x2ac
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.00433f00
mov edx, eax
neg edx
mov dword [ebp - 0x24], edx
test edx, edx
je 0x438270
cmp dword [0x45ed58], 1
jne 0x438272
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x24]
cmp eax, 0x708
jle 0x438272
mov edi, edx
mov ecx, dword [ebp - 4]
mov al, byte [0x45ed5c]
cmp byte [ebx + 0x14], 0
jne 0x438352
cmp edi, 0xffffd8f1
jne 0x437f90
cmp dword [ebx + 0x10], 0xfffffa24
jle 0x4384c2
mov edi, dword [ebp - 4]
test al, al
je 0x4382ba
movsx ecx, byte [ecx + 0x1b]
movsx eax, byte [edi + 0x1a]
add ecx, eax
cmp ecx, dword [0x45ed4c]
jle 0x4384c2
cmp edx, 0xffffd8f1
jne 0x4382ed
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, edi
add eax, 0x2ac
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.00433f00
mov edx, eax
mov eax, dword [ebp - 0x1c]
neg edx
mov dword [ebp - 0x24], edx
test eax, eax
je 0x4382ed
mov word [eax + 0xa], dx
mov edi, dword [ebx + 0x10]
lea eax, [edi + 0x1c]
cmp edx, eax
jl 0x4384c2
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
add ecx, 0xfffffffc
push eax
push 0
mov eax, 0xffffffe4
sub eax, edi
lea edx, [edx + 1]
push eax
mov eax, 0xffffffe3
sub eax, edi
cmp ecx, 1
push eax
mov eax, 1
cmovl ecx, eax
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.004377e0
mov edi, eax
add esp, 0x14
neg edi
cmp edi, 0xffff86e8
je 0x4378e3
mov ecx, dword [ebx + 0x10]
lea eax, [ecx + 0x1c]
cmp edi, eax
jle 0x4384c2
cmp edi, 0xffffd8f1
jne 0x437f90
mov ecx, dword [ebx + 0x14]
test cl, cl
je 0x4384c5
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0x1d], 0
test cl, cl
je 0x438379
cmp eax, 1
jle 0x4383d0
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
push eax
mov eax, ecx
not ecx
push 0
neg eax
lea edx, [edx + 1]
push eax
movzx eax, byte [ebp - 0x1d]
push ecx
mov ecx, dword [ebp - 0x28]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.004377e0
mov edi, eax
add esp, 0x14
neg edi
cmp edi, 0xffff86e8
je 0x4378e3
cmp edi, 0xffffd8f1
je 0x4383cd
cmp edi, dword [ebx + 0xc]
jle 0x438405
cmp edi, dword [ebx + 0x10]
jl 0x4383cd
cmp byte [ebp - 0x1d], 0
je 0x438405
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [edx + 1]
neg eax
push eax
mov eax, dword [ebx + 0x10]
neg eax
push eax
push dword [ebp - 0x28]
call fcn.004377e0
mov edi, eax
add esp, 0x14
neg edi
cmp edi, 0xffff86e8
je 0x4378e3
cmp dword [ebp - 0x1c], 0
je 0x43853b
mov ecx, dword [ebp - 4]
movzx eax, byte [0x45ed14]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
mov cl, 0x20
call fcn.0042da70
mov esi, dword [ebp - 0x1c]
movzx edx, di
mov dword [ebp - 0x58], edx
mov ecx, dword [esi]
cmp eax, ecx
mov word [esi + 8], dx
mov edx, dword [ebp - 0x1c]
mov dword [esi], eax
mov esi, dword [ebp - 0x24]
mov word [edx + 0xa], si
mov esi, edx
mov edx, dword [ebp - 0x28]
mov byte [esi + 0xc], dl
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x58]
jne 0x438461
cmp eax, dword [0x5e080c]
je 0x438467
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
movzx eax, dx
movzx ecx, cx
cmp dx, word [ebp - 0x48]
jle 0x4384e7
lea eax, [ecx + edx]
mov edx, dword [ebp - 0x1c]
mov word [edx + 8], ax
movzx eax, ax
jmp 0x4384ea
cmp edi, 0xffffd8f1
je 0x43818d
cmp edi, dword [ebx + 0xc]
jle 0x438011
jmp 0x43853b
mov edx, dword [ebp - 0x24]
jmp 0x438275
mov edx, dword [ebp - 0x24]
jmp 0x438272
mov edx, dword [ebp - 0x24]
jmp 0x43827a
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
jmp 0x43827a
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
mov eax, dword [ebp - 0x30]
jne 0x43836c
cmp eax, 3
jl 0x43836c
mov byte [ebp - 0x1d], 1
jmp 0x438379
mov edx, dword [ebp - 0x1c]
cmp ax, word [ebp - 0x4c]
jge 0x4384f6
sub eax, ecx
mov word [edx + 8], ax
mov ecx, dword [ebx + 0xc]
movzx eax, cx
cwde
cmp edi, eax
jg 0x43850b
mov eax, dword [ebp - 0x18]
or al, 0x40
mov byte [edx + 0xd], al
jmp 0x43853b
mov eax, dword [ebx + 0x10]
cwde
cmp edi, eax
mov eax, dword [ebp - 0x18]
jl 0x438518
or al, 0x80
mov byte [edx + 0xd], al
jmp 0x43853b
mov eax, dword [ebx + 0xc]
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0xc]
neg eax
push eax
mov eax, dword [ebx + 0x10]
neg eax
push eax
call fcn.00438680
mov edi, eax
add esp, 8
neg edi
cmp dword [ebp - 8], 1
jne 0x437f90
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x708
jge 0x437f90
mov edx, dword [0x460dc8]
lea ecx, [edx + 1]
dec edx
and ecx, 1
mov dword [ebp - 0x18], edx
cmp ecx, edx
jge 0x4385a1
mov eax, dword [ebp - 0xc]
lea eax, [eax + ecx*8]
add eax, 0x14b18
mov edx, dword [ebp - 4]
mov esi, dword [edx + 0x10]
cmp dword [eax], esi
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
jne 0x438597
mov edx, dword [ebp - 4]
mov esi, dword [edx + 0x14]
cmp dword [eax + 4], esi
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
je 0x4385bc
add ecx, 2
add eax, 0x10
cmp ecx, edx
jl 0x438576
cmp dword [ebp - 0x5c], 0
jle 0x437f90
mov eax, dword [ebx + 0xc]
cmp edi, eax
jle 0x438011
inc edi
jmp 0x437f93
sar edi, 1
jmp 0x437f90
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
jne 0x4385fa
push dword [ebp - 0x30]
mov dword [eax + 0xc0], esi
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebx + 8]
lea ecx, [ecx + 0x18b18]
call fcn.004388d0
add esp, 0x1c
mov eax, dword [ebx + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebx + 0x18]
mov dword [eax + 0xc8], esi
mov dword [eax + 0x2a8], 1
mov eax, dword [ebp - 0x60]
mov dword [ecx], esi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [edi + 4], 0
jne 0x438668
mov edx, dword [ebx + 0x18]
mov eax, dword [edx]
cmp eax, dword [0x5e080c]
je 0x438668
push dword [ebp - 0x30]
mov dword [edi + 0xc0], eax
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebx + 8]
lea ecx, [ecx + 0x18b18]
call fcn.004388d0
add esp, 0x1c
mov eax, dword [ebx + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret