Function at 0x411580
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1f8
mov edx, dword [0x52bbcc]
push ebx
push ebp
mov ebp, dword [0x4b9de8]
add ebp, 0xfffffffd
mov dword [esp + 0x1c], ebp
imul ebp, ebp, 0xa4
add ebp, 0x4a5358
xor eax, eax
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov ebx, 0x4dee98
jmp 0x4115c0
mov edi, dword [esp + 0x14]
add edi, edx
add edi, dword [ebp + 4]
cmp byte [ebx + 0x1a4], 0
je 0x41160c
lea eax, [esp + 0x30]
mov ecx, ebx
call fcn.00438040
mov edx, dword [0x4b9dec]
lea ecx, [esp + 0x11c]
push ecx
push edx
lea eax, [esp + 0x38]
call fcn.00437990
mov edx, dword [0x52bbcc]
mov ecx, 0x37
lea esi, [esp + 0x124]
add esp, 8
rep movsd dword es:[edi], dword [esi]
cmp word [ebx + 0xe], 0
je 0x41161f
inc dword [esp + 0x18]
add dword [esp + 0x14], 0xdc
add ebx, 0x1a8
cmp ebx, 0x4df888
jl 0x4115c0
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
mov dword [edx + eax], ecx
mov dword [esp + 0x14], 0
mov ebx, 0x4df888
mov dword [esp + 0x1c], 0x18
lea esp, [esp]
xor eax, eax
mov dword [esp + 0x18], eax
mov edi, dword [ebp + 8]
add edi, dword [esp + 0x14]
add edi, eax
add edi, edx
cmp byte [ebx + 0x1a4], 0
je 0x4116a7
lea eax, [esp + 0x30]
mov ecx, ebx
call fcn.00438040
mov eax, dword [0x4b9dec]
lea edx, [esp + 0x11c]
push edx
push eax
lea eax, [esp + 0x38]
call fcn.00437990
mov edx, dword [0x52bbcc]
mov eax, dword [esp + 0x20]
mov ecx, 0x22
lea esi, [esp + 0x124]
add esp, 8
rep movsd dword es:[edi], dword [esi]
add eax, 0x88
add ebx, 0x1a8
mov dword [esp + 0x18], eax
cmp eax, 0xff0
jl 0x411656
add dword [esp + 0x14], 0x1000
dec dword [esp + 0x1c]
jne 0x411650
cmp byte [0x52bbe8], 0
mov ecx, dword [ebp + 0xc]
lea eax, [edx + ecx]
mov ecx, dword [0x4b9de8]
je 0x4116f1
or byte [eax], 4
cmp ecx, 4
jne 0x411700
mov eax, dword [ebp + 0xc]
or byte [eax + edx], 2
jmp 0x411700
and byte [eax], 0xfb
cmp ecx, 4
jne 0x411700
mov eax, dword [ebp + 0xc]
and byte [eax + edx], 0xfd
cmp byte [0x52bbe9], 0
mov eax, dword [ebp + 0x10]
je 0x41171e
or byte [eax + edx], 1
cmp ecx, 4
jne 0x411722
mov eax, dword [ebp + 0x10]
or byte [eax + edx], 2
jmp 0x411722
and byte [eax + edx], 0xfe
cmp byte [0x52bbeb], 0
mov eax, dword [ebp + 0x10]
je 0x411734
or byte [eax + edx], 2
jmp 0x411738
and byte [eax + edx], 0xfd
cmp byte [0x52bbea], 0
mov eax, dword [ebp + 0x10]
je 0x41174a
or byte [eax + edx], 4
jmp 0x41174e
and byte [eax + edx], 0xfb
mov bl, 1
mov dword [esp + 0x1c], 0
mov byte [esp + 0x13], bl
lea esp, [esp]
mov edi, dword [esp + 0x1c]
test byte [edi*4 + 0x52a4a8], 2
je 0x41177b
mov eax, dword [ebp + 0x14]
shr edi, 3
add eax, edi
or byte [eax + edx], bl
jmp 0x41178a
mov esi, dword [ebp + 0x14]
shr edi, 3
mov cl, bl
add esi, edi
not cl
and byte [esi + edx], cl
mov ecx, dword [esp + 0x1c]
inc ecx
mov eax, 1
mov dword [esp + 0x20], ecx
call fcn.00413ae0
mov esi, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax*4 + 0x52a4a8]
test al, 1
je 0x411b1d
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
cmp esi, 0xdeadface
je 0x411864
test al, 0xc
jne 0x411864
test eax, 0x3000
jne 0x411864
call dword [0x4571ac]
push eax
call fcn.00449ba3
movzx ecx, byte [esi + 0x4b9dac]
add esp, 4
xor eax, eax
test ecx, ecx
je 0x41185e
mov edx, eax
nop
mov ecx, dword [esi*4 + 0x4b9d50]
mov cl, byte [ecx + eax]
test cl, 1
je 0x411814
mov edx, 1
test cl, 2
je 0x411821
mov dword [esp + 0x14], 1
movzx ecx, byte [esi + 0x4b9dac]
inc eax
cmp eax, ecx
jb 0x411800
mov dword [esp + 0x18], edx
test edx, edx
je 0x411846
call fcn.00449bb5
test al, 1
je 0x411846
mov dword [esp + 0x18], 2
cmp dword [esp + 0x14], 0
je 0x41185e
call fcn.00449bb5
test al, 1
je 0x41185e
mov dword [esp + 0x14], 2
mov edx, dword [0x52bbcc]
mov ecx, dword [esp + 0x1c]
test byte [ecx*4 + 0x52a4a8], 4
jne 0x411887
cmp dword [esp + 0x18], 1
je 0x411887
lea eax, [edi + edx]
add eax, dword [ebp + 0x18]
mov cl, bl
not cl
and byte [eax], cl
jmp 0x411890
mov ecx, dword [ebp + 0x18]
lea eax, [edi + edx]
or byte [eax + ecx], bl
mov eax, dword [esp + 0x1c]
test byte [eax*4 + 0x52a4a8], 8
jne 0x4118b5
cmp dword [esp + 0x18], 2
je 0x4118b5
mov eax, dword [ebp + 0x1c]
lea ecx, [edi + edx]
add eax, ecx
mov cl, bl
not cl
and byte [eax], cl
jmp 0x4118be
mov ecx, dword [ebp + 0x1c]
lea eax, [edi + edx]
or byte [eax + ecx], bl
mov eax, dword [esp + 0x1c]
test dword [eax*4 + 0x52a4a8], 0x1000
jne 0x4118e6
cmp dword [esp + 0x14], 1
je 0x4118e6
mov eax, dword [ebp + 0x20]
lea ecx, [edi + edx]
add eax, ecx
mov cl, bl
not cl
and byte [eax], cl
jmp 0x4118ef
mov ecx, dword [ebp + 0x20]
lea eax, [edi + edx]
or byte [eax + ecx], bl
mov eax, dword [esp + 0x1c]
test dword [eax*4 + 0x52a4a8], 0x2000
jne 0x411917
cmp dword [esp + 0x14], 2
je 0x411917
mov eax, dword [ebp + 0x24]
lea ecx, [edi + edx]
add eax, ecx
mov cl, bl
not cl
and byte [eax], cl
jmp 0x411920
mov ecx, dword [ebp + 0x24]
lea eax, [edi + edx]
or byte [eax + ecx], bl
mov eax, dword [esp + 0x1c]
test dword [eax*4 + 0x52a4a8], 0x4000
mov eax, dword [ebp + 0x28]
je 0x41193b
add eax, edi
or byte [eax + edx], bl
jmp 0x411944
mov cl, bl
add eax, edi
not cl
and byte [eax + edx], cl
mov eax, dword [esp + 0x1c]
test dword [eax*4 + 0x52a4a8], 0x8000
mov eax, dword [ebp + 0x2c]
je 0x41195f
add eax, edi
or byte [eax + edx], bl
jmp 0x411968
mov cl, bl
add eax, edi
not cl
and byte [eax + edx], cl
mov eax, dword [esp + 0x1c]
test dword [eax*4 + 0x52a4a8], 0x10000
mov eax, dword [ebp + 0x30]
je 0x411983
add eax, edi
or byte [eax + edx], bl
jmp 0x41198c
mov cl, bl
add eax, edi
not cl
and byte [eax + edx], cl
mov eax, dword [esp + 0x1c]
test dword [eax*4 + 0x52a4a8], 0x20000
je 0x4119a8
mov ecx, dword [ebp + 0x34]
lea eax, [edx + edi]
or byte [eax + ecx], bl
jmp 0x4119b4
mov eax, dword [ebp + 0x34]
mov cl, bl
add edi, edx
not cl
and byte [edi + eax], cl
cmp esi, 0xdeadface
je 0x411c42
xor edi, edi
cmp byte [esi + 0x4b9dac], 0
jbe 0x411c42
nop
movzx ecx, byte [esi + 0x4a54b8]
mov eax, dword [esi*4 + 0x4b9d50]
movzx ebx, byte [esi + 0x4a54a0]
add ecx, edi
test byte [edi + eax], 1
mov eax, ecx
je 0x411a06
shr eax, 3
add eax, edx
add ebx, eax
mov eax, dword [ebp + 0x3c]
add eax, ebx
and ecx, 7
mov bl, 1
shl bl, cl
or byte [eax], bl
jmp 0x411a1d
shr eax, 3
add eax, edx
add ebx, eax
mov eax, dword [ebp + 0x3c]
add eax, ebx
and ecx, 7
mov bl, 1
shl bl, cl
not bl
and byte [eax], bl
mov ecx, dword [esi*4 + 0x4b9d50]
test byte [edi + ecx], 2
movzx ebx, byte [esi + 0x4a54a0]
movzx ecx, byte [esi + 0x4a54b8]
je 0x411a53
add ecx, edi
mov eax, ecx
shr eax, 3
add eax, edx
add ebx, eax
mov eax, dword [ebp + 0x40]
add eax, ebx
and ecx, 7
mov bl, 1
shl bl, cl
or byte [eax], bl
jmp 0x411a6e
add ecx, edi
mov eax, ecx
shr eax, 3
add eax, edx
add ebx, eax
mov eax, dword [ebp + 0x40]
add eax, ebx
and ecx, 7
mov bl, 1
shl bl, cl
not bl
and byte [eax], bl
mov ecx, dword [esi*4 + 0x4b9d50]
test byte [edi + ecx], 4
movzx ebx, byte [esi + 0x4a54a0]
movzx ecx, byte [esi + 0x4a54b8]
je 0x411aa1
add ecx, edi
mov eax, ecx
shr eax, 3
add eax, ebx
add eax, dword [ebp + 0x44]
and ecx, 7
mov bl, 1
shl bl, cl
or byte [eax + edx], bl
jmp 0x411ab9
add ecx, edi
mov eax, ecx
shr eax, 3
add eax, ebx
add eax, dword [ebp + 0x44]
and ecx, 7
mov bl, 1
shl bl, cl
not bl
and byte [eax + edx], bl
mov ecx, dword [esi*4 + 0x4b9d50]
test byte [edi + ecx], 8
movzx ebx, byte [esi + 0x4a54a0]
movzx ecx, byte [esi + 0x4a54b8]
je 0x411aec
add ecx, edi
mov eax, ecx
shr eax, 3
add eax, ebx
add eax, dword [ebp + 0x48]
and ecx, 7
mov bl, 1
shl bl, cl
or byte [eax + edx], bl
jmp 0x411b04
add ecx, edi
mov eax, ecx
shr eax, 3
add eax, ebx
add eax, dword [ebp + 0x48]
and ecx, 7
mov bl, 1
shl bl, cl
not bl
and byte [eax + edx], bl
movzx ecx, byte [esi + 0x4b9dac]
mov bl, byte [esp + 0x13]
inc edi
cmp edi, ecx
jb 0x4119d0
jmp 0x411c42
mov ecx, dword [ebp + 0x14]
add ecx, edi
mov al, bl
not al
and byte [ecx + edx], al
mov ebx, dword [ebp + 0x18]
lea ecx, [edi + edx]
and byte [ecx + ebx], al
mov ebx, dword [ebp + 0x1c]
lea ecx, [edi + edx]
and byte [ecx + ebx], al
mov ebx, dword [ebp + 0x20]
lea ecx, [edi + edx]
and byte [ecx + ebx], al
mov ebx, dword [ebp + 0x24]
lea ecx, [edi + edx]
and byte [ecx + ebx], al
mov ecx, dword [ebp + 0x28]
add ecx, edi
and byte [ecx + edx], al
mov ecx, dword [ebp + 0x2c]
add ecx, edi
and byte [ecx + edx], al
mov ecx, dword [ebp + 0x30]
add ecx, edi
and byte [ecx + edx], al
mov ecx, dword [ebp + 0x34]
add edi, edx
and byte [ecx + edi], al
cmp esi, 0xdeadface
je 0x411c3e
xor edi, edi
cmp byte [esi + 0x4b9dac], 0
jbe 0x411c3e
jmp 0x411b90
movzx ecx, byte [esi + 0x4a54b8]
movzx ebx, byte [esi + 0x4a54a0]
add ecx, edi
mov eax, ecx
shr eax, 3
add eax, edx
add ebx, eax
mov eax, dword [ebp + 0x3c]
add eax, ebx
and ecx, 7
mov bl, 1
shl bl, cl
not bl
and byte [eax], bl
movzx ecx, byte [esi + 0x4a54b8]
movzx ebx, byte [esi + 0x4a54a0]
add ecx, edi
mov eax, ecx
shr eax, 3
add eax, edx
add ebx, eax
mov eax, dword [ebp + 0x40]
add eax, ebx
and ecx, 7
mov bl, 1
shl bl, cl
not bl
and byte [eax], bl
movzx ecx, byte [esi + 0x4a54b8]
movzx ebx, byte [esi + 0x4a54a0]
add ecx, edi
mov eax, ecx
shr eax, 3
add eax, ebx
add eax, dword [ebp + 0x44]
and ecx, 7
mov bl, 1
shl bl, cl
not bl
and byte [eax + edx], bl
movzx ecx, byte [esi + 0x4a54b8]
movzx ebx, byte [esi + 0x4a54a0]
add ecx, edi
mov eax, ecx
shr eax, 3
add eax, ebx
add eax, dword [ebp + 0x48]
and ecx, 7
mov bl, 1
shl bl, cl
inc edi
not bl
and byte [eax + edx], bl
movzx ecx, byte [esi + 0x4b9dac]
cmp edi, ecx
jb 0x411b90
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x20]
rol bl, 1
mov dword [esp + 0x1c], eax
mov byte [esp + 0x13], bl
cmp eax, 0x289
jb 0x411760
mov eax, 0x52a4a8
mov esi, 5
lea edi, [esi - 5]
lea ecx, [esi + 3]
shr edi, 3
add edi, dword [ebp + 0x38]
and ecx, 7
mov bl, 1
shl bl, cl
test byte [eax], 0x40
je 0x411c82
or byte [edi + edx], bl
jmp 0x411c87
not bl
and byte [edi + edx], bl
lea edi, [esi - 4]
lea ecx, [esi - 4]
shr edi, 3
add edi, dword [ebp + 0x38]
and ecx, 7
mov bl, 1
shl bl, cl
test byte [eax], 0x20
je 0x411ca4
or byte [edi + edx], bl
jmp 0x411ca9
not bl
and byte [edi + edx], bl
lea edi, [esi - 3]
lea ecx, [esi - 3]
shr edi, 3
add edi, dword [ebp + 0x38]
and ecx, 7
mov bl, 1
shl bl, cl
test byte [eax], 0x80
je 0x411cc6
or byte [edi + edx], bl
jmp 0x411ccb
not bl
and byte [edi + edx], bl
lea edi, [esi - 2]
lea ecx, [esi - 2]
shr edi, 3
add edi, dword [ebp + 0x38]
and ecx, 7
mov bl, 1
shl bl, cl
test dword [eax], 0x200
je 0x411ceb
or byte [edi + edx], bl
jmp 0x411cf0
not bl
and byte [edi + edx], bl
lea edi, [esi - 1]
lea ecx, [esi - 1]
shr edi, 3
add edi, dword [ebp + 0x38]
and ecx, 7
mov bl, 1
shl bl, cl
test dword [eax], 0x100
je 0x411d10
or byte [edi + edx], bl
jmp 0x411d15
not bl
and byte [edi + edx], bl
mov edi, esi
mov ecx, esi
shr edi, 3
add edi, dword [ebp + 0x38]
and ecx, 7
mov bl, 1
shl bl, cl
test dword [eax], 0x400
je 0x411d33
or byte [edi + edx], bl
jmp 0x411d38
not bl
and byte [edi + edx], bl
lea ecx, [esi + 1]
mov edi, ecx
shr edi, 3
add edi, dword [ebp + 0x38]
and ecx, 7
mov bl, 1
shl bl, cl
test dword [eax], 0x800
je 0x411d57
or byte [edi + edx], bl
jmp 0x411d5c
not bl
and byte [edi + edx], bl
add esi, 7
add eax, 4
cmp esi, 0xd80
jb 0x411c65
test byte [0x52a9c0], 1
je 0x411db2
call dword [0x4571ac]
push eax
call fcn.00449ba3
mov eax, dword [ebp + 0x4c]
mov edx, dword [0x52bbcc]
add esp, 4
cmp dword [edx + eax], 0
jne 0x411db2
call fcn.00449bb5
mov esi, eax
shl esi, 0x10
call fcn.00449bb5
mov ecx, dword [ebp + 0x4c]
mov edx, dword [0x52bbcc]
or eax, esi
mov dword [edx + ecx], eax
mov edi, dword [ebp + 0x60]
mov esi, dword [0x52c424]
add edi, edx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov eax, 0x264
mov ebx, 0x4dea08
mov edi, edi
mov edi, dword [ebp + 0x64]
mov esi, dword [ebx - 4]
lea ecx, [eax - 0x264]
add edi, ecx
add edi, edx
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x64]
lea ecx, [eax - 0x264]
add esi, ecx
lea edi, [esi + edx + 0xcc]
mov esi, dword [ebx]
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x64]
mov esi, dword [ebx + 4]
add ecx, eax
lea edi, [ecx + edx - 0xcc]
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x64]
mov esi, dword [ebx + 8]
add edi, eax
add edi, edx
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x64]
mov esi, dword [ebx + 0xc]
add ecx, eax
lea edi, [ecx + edx + 0xcc]
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x64]
mov esi, dword [ebx + 0x10]
add ecx, eax
lea edi, [ecx + edx + 0x198]
add eax, 0x4c8
mov ecx, 0x33
add ebx, 0x18
rep movsd dword es:[edi], dword [esi]
cmp eax, 0xbf4
jb 0x411dd0
mov eax, dword [esp + 0x24]
movzx ecx, byte [eax + eax*4 + 0x4a4cda]
lea eax, [eax + eax*4 + 0x4a4cda]
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp ecx, ebx
jne 0x411e89
xor eax, eax
jmp 0x411e9d
mov eax, dword [0x4b9de8]
imul eax, eax, 0x4a
add eax, ecx
mov eax, dword [eax*4 + 0x4a4c64]
add eax, 2
mov esi, eax
and esi, 0xff
je 0x411eb0
mov edi, 0x100
sub edi, esi
add eax, edi
add edx, eax
mov eax, dword [0x4b9de8]
add eax, 0xfffffffd
imul eax, eax, 0x4a
add eax, ecx
movzx eax, word [eax*2 + 0x4a5230]
sub eax, 4
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], ebx
cmp eax, 2
jl 0x411ef9
lea ecx, [eax - 2]
shr ecx, 1
inc ecx
lea esi, [ecx + ecx]
mov dword [esp + 0x20], esi
movzx esi, byte [edx]
add edi, esi
movzx esi, byte [edx + 1]
add ebx, esi
add edx, 2
dec ecx
jne 0x411ee4
mov esi, dword [esp + 0x20]
cmp esi, eax
jae 0x411f04
movzx ecx, byte [edx]
mov dword [esp + 0x14], ecx
call dword [0x4571ac]
push eax
call fcn.00449ba3
add esp, 4
call fcn.00449bb5
mov esi, eax
shl esi, 8
call fcn.00449bb5
mov ecx, dword [esp + 0x18]
add edi, ebx
add edi, dword [esp + 0x14]
xor eax, esi
and edi, 0xffff
shl eax, 0x10
or eax, edi
movzx edi, byte [ecx]
mov edx, eax
mov dword [0x52bb6c], edx
test edi, edi
jne 0x411f4c
xor ecx, ecx
jmp 0x411f61
mov ecx, dword [0x4b9de8]
imul ecx, ecx, 0x4a
add ecx, edi
mov ecx, dword [ecx*4 + 0x4a4c64]
add ecx, 2
mov esi, ecx
and esi, 0xff
je 0x411f74
mov ebx, 0x100
sub ebx, esi
add ecx, ebx
mov ebx, dword [0x4b9de8]
mov esi, dword [0x52bbcc]
add ebx, 0xfffffffd
imul ebx, ebx, 0x4a
add ebx, edi
movzx edi, word [ebx*2 + 0x4a5230]
add ecx, esi
sub edi, 4
je 0x411fc0
dec edi
shr edi, 1
inc edi
jmp 0x411fa0
imul edx, edx, 0x41c64e6d
add edx, 0x6073
mov ebx, edx
shr ebx, 0x10
xor word [ecx], bx
add ecx, 2
dec edi
jne 0x411fa0
mov dword [0x52bb6c], edx
mov edx, dword [ebp + 0x68]
mov dword [esi + edx], eax
xor edi, edi
lea ebx, [ebp + 0x6c]
jmp 0x411fd0
movzx eax, byte [edi + 0x4a4ce4]
mov ecx, dword [0x4b9de8]
lea edx, [eax + ecx*8]
movzx ecx, word [edx*2 + 0x4a4a38]
mov edx, dword [eax*4 + 0x4d3210]
mov eax, dword [ebx]
add ecx, ecx
add ecx, ecx
push ecx
push edx
add eax, esi
push eax
call fcn.0044ab40
inc edi
add esp, 0xc
add ebx, 4
cmp edi, 5
jb 0x411fd0
cmp dword [0x4dea64], 0x800a4
ja 0x41219a
cmp dword [0x52bb28], 0
je 0x41219a
mov ecx, dword [ebp + 0x80]
push 0x2600
add ecx, esi
push 0x4d8a48
push ecx
call fcn.0044ab40
add esp, 0xc
mov ecx, 0xffff
xor edx, edx
lea ebx, [ebx]
movzx edi, byte [edx + 0x4d8a48]
mov eax, ecx
shr eax, 8
movzx eax, al
xor eax, edi
movzx eax, word [eax*2 + 0x4a4ad8]
movzx edi, byte [edx + 0x4d8a49]
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor ecx, edi
movzx ecx, word [ecx*2 + 0x4a4ad8]
movzx edi, byte [edx + 0x4d8a4a]
shl eax, 8
xor ecx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
xor eax, edi
movzx eax, word [eax*2 + 0x4a4ad8]
movzx edi, byte [edx + 0x4d8a4b]
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor ecx, edi
movzx ecx, word [ecx*2 + 0x4a4ad8]
shl eax, 8
add edx, 4
xor ecx, eax
cmp edx, 0x2600
jb 0x412050
mov edx, dword [ebp + 0x84]
movzx eax, cx
mov word [esi + edx], ax
mov ecx, dword [ebp + 0x84]
lea ecx, [ecx + esi - 2]
mov edx, 0xffff
cmp word [ecx], dx
jne 0x412100
mov edx, 1
mov word [ecx], dx
mov ecx, dword [ebp + 0x8c]
mov word [esi + ecx], ax
mov edx, dword [ebp + 0x8c]
xor ecx, ecx
mov word [edx + esi + 2], cx
mov ecx, dword [ebp + 0xa0]
cmp dword [ecx + esi], 0xffffffff
jne 0x41212a
mov dword [ecx + esi], 1
mov ecx, dword [ebp + 0xa0]
mov dword [ecx + esi + 4], 0x2714
mov edx, dword [ebp + 0x9c]
mov ecx, dword [ebp + 0xa0]
mov edx, dword [edx + esi + 8]
mov dword [ecx + esi + 8], edx
mov ecx, dword [ebp + 0xa0]
lea ecx, [ecx + esi + 0xc]
mov edx, 0xffff
cmp word [ecx], dx
jne 0x412165
xor edx, edx
mov word [ecx], dx
mov ecx, dword [ebp + 0x88]
mov word [esi + ecx], ax
mov edx, dword [ebp + 0x94]
mov byte [esi + edx], 1
mov eax, dword [ebp + 0x90]
mov ecx, 0xc21e
mov word [esi + eax], cx
mov edx, dword [ebp + 0xa0]
mov eax, dword [ebp + 0x98]
mov ecx, dword [esi + edx]
mov dword [esi + eax], ecx
xor eax, eax
xor ebx, ebx
cmp dword [0x4b9de8], 3
mov dword [esp + 0x18], ebx
setne al
lea eax, [eax*4 + 0x46]
dec eax
mov dword [esp + 0x28], eax
je 0x4122b7
mov ecx, dword [esp + 0x24]
mov eax, ecx
imul eax, eax, 0x4a
lea edx, [ecx + ecx*4 + 0x4a4cdb]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edx
test ebx, ebx
jne 0x4121de
xor eax, eax
jmp 0x4121f2
mov eax, dword [0x4b9de8]
imul eax, eax, 0x4a
add eax, ebx
mov eax, dword [eax*4 + 0x4a4c64]
add eax, 2
mov ecx, eax
and ecx, 0xff
mov dword [esp + 0x14], eax
je 0x41220d
mov edx, 0x100
sub edx, ecx
add eax, edx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x20]
add edx, ebx
movzx edi, word [edx*2 + 0x4a5230]
xor ecx, ecx
mov eax, 0xffff
mov dword [esp + 0x1c], edx
test edi, edi
je 0x412260
mov edx, dword [esp + 0x14]
add edx, esi
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x14]
movzx ebx, byte [ebx + ecx]
mov edx, eax
shr edx, 8
movzx edx, dl
xor edx, ebx
movzx edx, word [edx*2 + 0x4a4ad8]
shl eax, 8
inc ecx
xor eax, edx
cmp ecx, edi
jb 0x412234
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edx*4 + 0x4a4fe0]
mov edx, dword [esp + 0x2c]
mov word [esi + eax], cx
movzx eax, byte [edx]
test eax, eax
je 0x41228e
mov edx, dword [0x4b9de8]
imul edx, edx, 0x4a
add edx, eax
mov eax, dword [edx*4 + 0x4a4c64]
add eax, 2
mov edx, eax
and edx, 0xff
je 0x4122a1
mov edi, 0x100
sub edi, edx
add eax, edi
lea eax, [eax + ebx*2]
inc ebx
mov word [eax + esi], cx
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0x28]
jb 0x4121d6
mov ebx, dword [esp + 0x24]
movzx edi, byte [ebx + ebx*4 + 0x4a4cdb]
test edi, edi
jne 0x4122cb
xor edx, edx
jmp 0x4122df
mov eax, dword [0x4b9de8]
imul eax, eax, 0x4a
add eax, edi
mov edx, dword [eax*4 + 0x4a4c64]
add edx, 2
mov eax, edx
and eax, 0xff
je 0x4122f1
mov ecx, 0x100
sub ecx, eax
add edx, ecx
imul ebx, ebx, 0x4a
add ebx, edi
movzx edi, word [ebx*2 + 0x4a5230]
xor ecx, ecx
mov eax, 0xffff
mov dword [esp + 0x2c], ebx
test edi, edi
je 0x41233b
add edx, esi
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x28]
movzx ebx, byte [ebx + ecx]
mov edx, eax
shr edx, 8
movzx edx, dl
xor edx, ebx
movzx edx, word [edx*2 + 0x4a4ad8]
shl eax, 8
inc ecx
xor eax, edx
cmp ecx, edi
jb 0x412313
mov ebx, dword [esp + 0x2c]
cmp dword [0x4dea64], 0x800a4
mov ecx, dword [ebx*4 + 0x4a4fe0]
mov word [esi + ecx], ax
ja 0x4123e8
mov edx, dword [ebp + 0x8c]
mov al, byte [edx + esi]
movzx edi, byte [edx + esi + 1]
not al
movzx ecx, al
movzx eax, word [ecx*2 + 0x4a4ad8]
add edx, esi
xor eax, 0xffff00
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor ecx, edi
movzx ecx, word [ecx*2 + 0x4a4ad8]
movzx edi, byte [edx + 2]
shl eax, 8
xor ecx, eax
movzx edx, byte [edx + 3]
mov eax, ecx
shr eax, 8
movzx eax, al
xor eax, edi
movzx eax, word [eax*2 + 0x4a4ad8]
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor ecx, edx
movzx ecx, word [ecx*2 + 0x4a4ad8]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp + 0xa0]
mov word [eax + esi + 0xe], cx
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx*4 + 0x4a4cec]
push eax
add eax, esi
push esi
push eax
call fcn.0044ab40
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f8
ret