Function at 0x100d9d75
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
jmp 0x1014f460
sub esp, 0x188
mov eax, dword [0x1036e400]
xor eax, esp
mov dword [esp + 0x184], eax
mov edx, dword [esp + 0x1b0]
mov eax, dword [esp + 0x18c]
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x1b4]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x19c]
cmp dword [eax + 0x4d4], 3
push edi
mov edi, dword [esp + 0x1a8]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x1bc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x60], edx
jne 0x101502a8
cmp dword [eax + 0x4e0], 8
jne 0x101502a8
test ecx, ecx
je 0x1015028d
test edi, edi
je 0x1015028d
cmp dword [eax + 0x4d8], 0
mov ecx, dword [eax + 0x4ec]
mov edx, ecx
mov dword [esp + 0x2c], ecx
jne 0x1014f50b
lea edx, [edx + edx*2]
mov dword [esp + 0x2c], edx
push esi
mov esi, dword [eax + 0x4f0]
mov dword [esp + 0x4c], esi
test esi, esi
je 0x1014f525
lea edx, [ecx*4]
mov dword [esp + 0x30], edx
cmp dword [esp + 0x1d4], 0
je 0x1014f539
add edx, 3
and edx, 0xfffffffc
mov dword [esp + 0x30], edx
push ebp
mov ebp, dword [eax + 0x4e8]
mov esi, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x64], esi
test ebp, ebp
je 0x10150270
test esi, esi
je 0x10150270
mov ax, word [esp + 0x1a0]
push ebx
mov dword [esp + 0x3c], 0
test ax, ax
jbe 0x1014f5ef
movzx ecx, ax
cmp ecx, esi
mov dword [esp + 0x50], ecx
jge 0x1014f5ef
mov ax, word [esp + 0x1a8]
test ax, ax
jbe 0x1014f5ef
movzx eax, ax
cmp eax, ebp
mov dword [esp + 0x28], eax
jge 0x1014f5ef
fild dword [esp + 0x68]
mov dword [esp + 0x20], eax
mov esi, ecx
mov dword [esp + 0x3c], 1
fidiv dword [esp + 0x50]
mov dword [esp + 0x10], esi
fst qword [esp + 0x70]
fild dword [esp + 0x14]
fidiv dword [esp + 0x28]
fst qword [esp + 0x88]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1014f5dc
fstp st(0)
call fcn.100dcc82
mov ebx, eax
inc ebx
mov dword [esp + 0x1c], ebx
jmp 0x1014f681
fstp st(1)
call fcn.100dcc82
mov ebx, eax
inc ebx
mov dword [esp + 0x1c], ebx
jmp 0x1014f681
mov ecx, dword [esp + 0x1a0]
test ecx, ecx
jbe 0x1014f630
mov eax, esi
imul eax, ebp
xor edx, edx
div ecx
mov dword [esp + 0x70], eax
fild dword [esp + 0x70]
test eax, eax
jge 0x1014f615
fadd qword [0x102cf268]
call fcn.100dcf8e
fadd qword [0x102cf260]
call fcn.100dcc82
mov ebx, eax
cmp ebx, 1
mov dword [esp + 0x1c], ebx
jge 0x1014f639
mov ebx, 1
mov dword [esp + 0x1c], ebx
mov eax, ebx
imul eax, ebx
mov dword [esp + 0x50], eax
cmp ebx, 1
jne 0x1014f652
mov dword [esp + 0x1d4], 0
cmp dword [esp + 0x54], 0
je 0x1014f666
lea eax, [ebx*4]
mov dword [esp + 0x2c], eax
jmp 0x1014f66d
lea ecx, [ebx + ebx*2]
mov dword [esp + 0x2c], ecx
mov eax, esi
cdq
idiv ebx
mov esi, eax
mov dword [esp + 0x10], eax
mov eax, ebp
cdq
idiv ebx
mov dword [esp + 0x20], eax
mov ebp, ebx
imul ebp, dword [esp + 0x38]
cmp dword [esp + 0x1d8], 0
je 0x1014f69f
lea eax, [esi + esi*2 + 3]
and eax, 0xfffffffc
mov dword [esp + 0x4c], eax
jmp 0x1014f6a6
lea edx, [esi + esi*2]
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x6c]
cmp dword [eax], 0
jne 0x1014f6c6
mov ecx, eax
push ecx
call fcn.100dbb61
movzx eax, ax
add esp, 4
test ax, ax
jne 0x1014fc23
lea edx, [esp + 0x18]
push edx
call fcn.100dbb61
movzx eax, ax
add esp, 4
test ax, ax
jne 0x1014fc23
mov eax, dword [esp + 0x18]
push ebp
push eax
call fcn.100de77b
add esp, 8
mov dword [esp + 0x64], eax
test eax, eax
je 0x1014f789
cmp dword [esp + 0x1d4], 0
je 0x1014f79d
mov edx, dword [esp + 0x18]
lea ebp, [esi + esi]
push ebp
push edx
call fcn.100de77b
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call fcn.100de77b
mov ecx, dword [esp + 0x28]
mov ebp, eax
lea eax, [esi + esi]
push eax
push ecx
mov dword [esp + 0x58], ebp
call fcn.100de77b
add esp, 0x18
cmp dword [esp + 0x30], 0
mov dword [esp + 0x44], eax
je 0x1014f789
test ebp, ebp
je 0x1014f789
test eax, eax
je 0x1014f789
cmp dword [esp + 0x3c], 0
je 0x1014f867
mov edx, dword [esp + 0x18]
lea eax, [esi + esi]
push eax
push edx
call fcn.100de77b
add esp, 8
mov dword [esp + 0x58], eax
test eax, eax
jne 0x1014f7a1
mov eax, dword [esp + 0x18]
push eax
call fcn.100db8dc
add esp, 4
mov eax, 0x66
jmp 0x1014fc23
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100db8dc
mov eax, 0x66
jmp 0x1014fc20
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x3c], 0
je 0x1014f867
mov eax, dword [esp + 0x18]
lea edx, [esi*4 + 4]
push edx
push eax
call fcn.100de77b
mov ecx, dword [esp + 0x28]
lea edx, [ecx*4 + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.100de77b
add esp, 0x10
cmp dword [esp + 0x34], 0
mov dword [esp + 0x5c], eax
je 0x1014f772
test eax, eax
je 0x1014f772
mov dword [esp + 0x24], 0
test esi, esi
jle 0x1014f81b
fld qword [esp + 0x70]
fild dword [esp + 0x24]
fmul st(1)
call fcn.100dcc82
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, esi
mov dword [esp + 0x24], ecx
jl 0x1014f7fa
fstp st(0)
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x34]
mov dword [ecx + esi*4], eax
xor esi, esi
cmp dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
jle 0x1014f858
fld qword [esp + 0x88]
fild dword [esp + 0x24]
fmul st(1)
call fcn.100dcc82
mov edx, dword [esp + 0x5c]
mov dword [edx + esi*4], eax
inc esi
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x24], esi
jl 0x1014f839
fstp st(0)
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
mov dword [ecx + edx*4], eax
mov esi, dword [esp + 0x4c]
imul esi, dword [esp + 0x20]
xor ecx, ecx
cmp dword [esp + 0x1d0], ecx
je 0x1014f883
mov edx, dword [esp + 0x60]
cmp dword [edx], ecx
jne 0x1014f8b9
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
lea eax, [esi + 0x4ac]
push eax
push edx
call fcn.100de77b
mov ecx, dword [esp + 0x68]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x1014f8b7
mov edx, dword [esp + 0x18]
push edx
call fcn.100db8dc
mov eax, 0x66
jmp 0x1014fc20
xor ecx, ecx
mov eax, dword [esp + 0x60]
mov edx, dword [eax]
lea eax, [esi + edx + 0x80]
mov dword [edi], eax
cmp eax, ecx
je 0x1014f772
mov dword [eax], 0x28
mov edx, dword [edi]
mov eax, dword [esp + 0x10]
mov dword [edx + 4], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x20]
mov dword [edx + 8], eax
mov edx, dword [edi]
mov eax, 1
mov word [edx + 0xc], ax
mov edx, dword [edi]
mov eax, 0x18
mov word [edx + 0xe], ax
mov edx, dword [edi]
mov dword [edx + 0x10], ecx
mov eax, dword [edi]
mov dword [eax + 0x14], esi
mov edx, dword [edi]
mov dword [edx + 0x18], ecx
mov eax, dword [edi]
mov dword [eax + 0x1c], ecx
mov edx, dword [edi]
mov dword [edx + 0x24], ecx
mov eax, dword [edi]
mov dword [eax + 0x20], ecx
xor eax, eax
mov edi, edi
mov edx, dword [edi]
mov byte [edx + eax*4 + 0x2a], al
mov edx, dword [edi]
mov byte [edx + eax*4 + 0x29], al
mov edx, dword [edi]
mov byte [edx + eax*4 + 0x28], al
mov edx, dword [edi]
mov byte [edx + eax*4 + 0x2b], 0
inc eax
cmp eax, 0x100
jl 0x1014f920
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x1cc], ecx
je 0x1014f960
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x60]
dec eax
imul eax, edx
add eax, dword [esi]
neg edx
jmp 0x1014f966
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x48], eax
cmp dword [edx + 0x4d8], ecx
je 0x1014fc3c
mov dword [esp + 0x2c], 2
lea esp, [esp]
xor ecx, ecx
cmp dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
jle 0x1014fbfa
jmp 0x1014f9b4
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x10]
test ebp, ebp
je 0x1014f9cf
mov ebx, dword [eax + ecx*4 + 4]
sub ebx, dword [eax + ecx*4]
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x7c]
mov esi, ebx
imul esi, dword [esp + 0x38]
push esi
push eax
push ecx
call fcn.100db5df
add esp, 0xc
cmp eax, esi
jne 0x1014fc11
cmp dword [esp + 0x1d4], 0
je 0x1014fb67
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x64]
lea esi, [edi + edi]
push esi
push 0
push edx
mov dword [esp + 0x4c], ebp
call fcn.100dc309
add esp, 0xc
cmp dword [esp + 0x3c], 0
je 0x1014faea
mov eax, dword [esp + 0x58]
push esi
push 0
push eax
call fcn.100dc309
add esp, 0xc
test ebx, ebx
jle 0x1014faa1
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x40], ecx
lea ecx, [ecx]
xor edi, edi
xor edx, edx
test esi, esi
jle 0x1014fa96
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov edi, edi
mov esi, dword [ebx + edi*4 + 4]
sub esi, dword [ebx + edi*4]
test esi, esi
jle 0x1014fa86
jmp 0x1014fa70
movzx bx, byte [edx + ebp]
add word [ecx + eax], bx
inc word [eax]
inc edx
sub esi, 1
jne 0x1014fa70
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
inc edi
add eax, 2
cmp edi, esi
jl 0x1014fa60
mov eax, dword [esp + 0x58]
add ebp, dword [esp + 0x38]
sub dword [esp + 0x40], 1
jne 0x1014fa50
cmp dword [esp + 0x10], 0
jle 0x1014fbd0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x58]
mov ebx, dword [esp + 0x10]
lea esi, [edx + eax]
sub ebp, ecx
movzx edi, word [ecx + ebp]
test edi, edi
je 0x1014fad7
movzx eax, word [ecx]
cdq
idiv edi
mov byte [esi], al
jmp 0x1014fada
mov byte [esi], 0
add ecx, 2
add esi, 3
sub ebx, 1
jne 0x1014fac5
jmp 0x1014fbd0
test ebx, ebx
jle 0x1014fb32
mov dword [esp + 0x44], ebx
test edi, edi
jle 0x1014fb23
mov eax, dword [esp + 0x30]
mov esi, ebp
lea esp, [esp]
mov ecx, esi
mov edx, ebx
movzx bp, byte [ecx]
add word [eax], bp
inc ecx
sub edx, 1
jne 0x1014fb04
add eax, 2
add esi, ebx
sub edi, 1
jne 0x1014fb00
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x10]
add ebp, dword [esp + 0x38]
sub dword [esp + 0x44], 1
mov dword [esp + 0x40], ebp
jne 0x1014faf2
xor ecx, ecx
test edi, edi
jle 0x1014fbd0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x30]
lea esi, [edx + eax]
movzx eax, word [edi + ecx*2]
cdq
idiv ebp
inc ecx
add esi, 3
cmp ecx, ebx
mov byte [esi - 3], al
jl 0x1014fb53
jmp 0x1014fbd0
test ebp, ebp
je 0x1014fba8
xor eax, eax
xor esi, esi
test edi, edi
jle 0x1014fbd0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x64]
add ecx, edx
mov edx, dword [esp + 0x10]
lea esp, [esp]
mov bl, byte [esi + ebp]
mov byte [ecx], bl
mov ebx, dword [edi + eax*4 + 4]
sub ebx, dword [edi + eax*4]
inc eax
add esi, ebx
add ecx, 3
cmp eax, edx
jl 0x1014fb90
jmp 0x1014fbd0
test edi, edi
jle 0x1014fbd0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x64]
mov dl, byte [eax]
mov byte [ecx], dl
add eax, edi
add ecx, 3
sub esi, 1
jne 0x1014fbc2
mov eax, dword [esp + 0x68]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
jl 0x1014f9b0
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x2c]
dec ecx
cmp ecx, 0xffffffff
mov dword [esp + 0x2c], ecx
jg 0x1014f990
jmp 0x1015005b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100db8dc
mov eax, 0xca
add esp, 4
pop ebx
pop ebp
pop esi
pop edi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.100dba62
add esp, 0x188
ret
cmp dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
jle 0x1015005b
mov edi, edi
cmp dword [esp + 0x3c], 0
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x64]
je 0x1014fc72
mov ecx, dword [esp + 0x24]
mov eax, dword [edx + ecx*4 + 4]
sub eax, dword [edx + ecx*4]
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x1c]
imul esi, dword [esp + 0x38]
mov edx, dword [esp + 0x7c]
push esi
push edi
push edx
call fcn.100db5df
add esp, 0xc
cmp eax, esi
jne 0x1014ffea
cmp dword [esp + 0x1dc], 0
je 0x1014fcd6
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x1014ffcd
mov ecx, dword [esp + 0x14]
lea eax, [edi + 1]
mov edi, dword [esp + 0x2c]
inc ecx
movzx edx, byte [eax - 1]
mov byte [ecx - 1], dl
movzx edx, byte [eax]
mov byte [ecx], dl
movzx edx, byte [eax + 1]
mov byte [ecx + 1], dl
add eax, edi
add ecx, 3
sub esi, 1
jne 0x1014fcb4
jmp 0x1014ffcd
cmp dword [esp + 0x1d4], 0
je 0x1014ff58
mov eax, dword [esp + 0x30]
mov esi, edi
mov edi, dword [esp + 0x10]
add edi, edi
push edi
push 0
push eax
call fcn.100dc309
push edi
push 0
push ebp
call fcn.100dc309
mov ecx, dword [esp + 0x5c]
push edi
push 0
push ecx
call fcn.100dc309
add esp, 0x24
cmp dword [esp + 0x3c], 0
je 0x1014fe64
mov edx, dword [esp + 0x58]
push edi
push 0
push edx
call fcn.100dc309
add esp, 0xc
cmp dword [esp + 0x1c], 0
jle 0x1014fde0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
xor ebx, ebx
xor ecx, ecx
cmp dword [esp + 0x10], ecx
mov dword [esp + 0x54], ebx
jle 0x1014fdd1
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
sub edi, ebp
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x58]
sub edx, ebp
sub edi, ebp
mov eax, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x70], edi
mov edi, dword [ebp + ebx*4 + 4]
sub edi, dword [ebp + ebx*4]
test edi, edi
jle 0x1014fdbf
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x88]
movzx ebx, byte [esi + ecx]
add word [edx + eax], bx
movzx ebx, byte [esi + ecx + 1]
add word [eax], bx
inc ecx
movzx ebx, byte [esi + ecx + 1]
add word [edi + eax], bx
inc word [eax + ebp]
inc ecx
inc ecx
sub dword [esp + 0x48], 1
jne 0x1014fd90
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x34]
inc ebx
add eax, 2
cmp ebx, dword [esp + 0x10]
mov dword [esp + 0x54], ebx
jl 0x1014fd75
mov ebp, dword [esp + 0x40]
add esi, dword [esp + 0x38]
sub dword [esp + 0x28], 1
jne 0x1014fd40
cmp dword [esp + 0x10], 0
jle 0x1014ffcd
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edi, ebp
sub eax, esi
sub edi, esi
sub edx, esi
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x88], eax
mov dword [esp + 0x28], edx
movzx ebx, word [eax + esi]
test ebx, ebx
je 0x1014fe49
movzx eax, word [esi]
cdq
idiv ebx
inc ecx
inc ecx
mov byte [ecx - 2], al
movzx eax, word [edi + esi]
cdq
idiv ebx
mov byte [ecx - 1], al
mov eax, dword [esp + 0x70]
movzx eax, word [eax + esi]
cdq
idiv ebx
mov byte [ecx], al
mov eax, dword [esp + 0x88]
jmp 0x1014fe54
mov byte [ecx], 0
inc ecx
mov byte [ecx], 0
inc ecx
mov byte [ecx], 0
inc ecx
add esi, 2
sub dword [esp + 0x28], 1
jne 0x1014fe16
jmp 0x1014ffcd
cmp dword [esp + 0x1c], 0
jle 0x1014fef6
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
cmp dword [esp + 0x10], 0
jle 0x1014feeb
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x10]
mov ecx, esi
sub edx, ebp
mov dword [esp + 0x28], ecx
mov eax, ebp
sub edi, ebp
mov dword [esp + 0x54], ebx
lea ebx, [ebx]
mov ebx, dword [esp + 0x1c]
jmp 0x1014feb0
movzx bp, byte [ecx]
add word [eax + edx], bp
movzx bp, byte [ecx + 1]
add word [eax], bp
inc ecx
movzx bp, byte [ecx + 1]
add word [eax + edi], bp
inc ecx
inc ecx
sub ebx, 1
jne 0x1014feb0
mov ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x2c]
add eax, 2
sub dword [esp + 0x54], 1
mov dword [esp + 0x28], ecx
jne 0x1014fea0
mov ebp, dword [esp + 0x40]
add esi, dword [esp + 0x38]
sub dword [esp + 0x48], 1
jne 0x1014fe77
cmp dword [esp + 0x10], 0
jle 0x1014ffcd
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x50]
sub edi, ebp
sub eax, ebp
mov esi, ebp
mov dword [esp + 0x70], eax
mov dword [esp + 0x28], edx
movzx eax, word [esi + edi]
cdq
idiv ebx
inc ecx
inc ecx
inc ecx
add esi, 2
mov byte [ecx - 3], al
movzx eax, word [esi - 2]
cdq
idiv ebx
mov byte [ecx - 2], al
mov eax, dword [esp + 0x70]
movzx eax, word [esi + eax - 2]
cdq
idiv ebx
sub dword [esp + 0x28], 1
mov byte [ecx - 1], al
jne 0x1014ff23
jmp 0x1014ffcd
cmp dword [esp + 0x3c], 0
je 0x1014ff9c
xor ecx, ecx
xor esi, esi
cmp dword [esp + 0x10], ecx
jle 0x1014ffcd
mov eax, dword [esp + 0x14]
lea ecx, [ecx]
movzx edx, byte [edi + ecx + 2]
mov byte [eax], dl
movzx edx, byte [edi + ecx + 1]
inc eax
mov byte [eax], dl
movzx edx, byte [ecx + edi]
inc eax
mov byte [eax], dl
mov edx, dword [ebx + esi*4 + 4]
sub edx, dword [ebx + esi*4]
inc esi
add ecx, edx
inc eax
cmp esi, dword [esp + 0x10]
lea ecx, [ecx + edx*2]
jl 0x1014ff70
jmp 0x1014ffcd
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x1014ffcd
mov ecx, dword [esp + 0x14]
lea eax, [edi + 1]
mov edi, dword [esp + 0x2c]
inc ecx
movzx edx, byte [eax + 1]
mov byte [ecx - 1], dl
movzx edx, byte [eax]
mov byte [ecx], dl
movzx edx, byte [eax - 1]
mov byte [ecx + 1], dl
add eax, edi
add ecx, 3
sub esi, 1
jne 0x1014ffb0
mov eax, dword [esp + 0x68]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
jl 0x1014fc50
jmp 0x10150054
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
add ecx, 0xfffffffe
cmp esi, ecx
jge 0x10150016
fild dword [esp + 0x20]
fmul qword [str.ffffff]
call fcn.100dcc82
cmp esi, eax
jge 0x10150016
mov edx, dword [esp + 0x18]
push edx
jmp 0x1014fc16
mov eax, dword [esp + 0x7c]
add eax, 0xa
push eax
lea ecx, [esp + 0x98]
push str.Image_pixel_data_too_short___s_
push ecx
call fcn.100dc809
push 0x112e
push 0x102cf228
lea edx, [esp + 0xa8]
push edx
push 0xca
push 0x40003
call fcn.100dac0c
add esp, 0x20
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x78]
push eax
call fcn.100db8dc
add esp, 4
cmp dword [esp + 0x84], 0
je 0x10150269
test esi, esi
je 0x10150269
mov ax, word [esp + 0x1b8]
test ax, ax
jne 0x10150099
mov eax, 1
jmp 0x1014fc23
mov ecx, dword [edi]
movzx edi, ax
mov eax, dword [ecx + 4]
cdq
idiv edi
mov ecx, eax
cmp ecx, 1
jge 0x101500b0
mov ecx, 1
mov eax, dword [esp + 0x20]
lea edx, [ecx + ecx*2]
mov dword [esp + 0x2c], edx
cdq
idiv ecx
mov ebx, eax
mov eax, dword [esp + 0x10]
cdq
idiv ecx
mov ebp, eax
mov eax, dword [esp + 0x4c]
imul eax, ecx
cmp dword [esp + 0x1d8], 0
mov dword [esp + 0x10], ebp
mov dword [esp + 0x70], eax
je 0x101500eb
lea edi, [ebp + ebp*2 + 3]
and edi, 0xfffffffc
jmp 0x101500ef
lea edi, [ebp + ebp*2]
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
push 0x42c
push ecx
mov dword [esp + 0x54], edi
call fcn.100de77b
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x1014f77f
mov eax, dword [esp + 0x6c]
imul edi, ebx
mov ecx, dword [eax]
lea edx, [edi + 0x80]
push edx
push ecx
call fcn.100de77b
mov edx, dword [esp + 0x8c]
add esp, 8
mov dword [edx], eax
test eax, eax
je 0x1014f77f
mov eax, dword [esi]
mov dword [eax], 0x28
mov ecx, dword [esi]
mov dword [ecx + 4], ebp
mov edx, dword [esi]
mov dword [edx + 8], ebx
mov eax, dword [esi]
mov ecx, 1
mov word [eax + 0xc], cx
mov edx, dword [esi]
xor ecx, ecx
mov eax, 0x18
mov word [edx + 0xe], ax
mov edx, dword [esi]
mov dword [edx + 0x10], ecx
mov eax, dword [esi]
mov dword [eax + 0x14], edi
mov edx, dword [esi]
mov dword [edx + 0x18], ecx
mov eax, dword [esi]
mov dword [eax + 0x1c], ecx
mov edx, dword [esi]
mov dword [edx + 0x24], ecx
mov eax, dword [esi]
mov dword [eax + 0x20], ecx
xor eax, eax
mov edx, dword [esi]
mov byte [edx + eax*4 + 0x2a], al
mov edx, dword [esi]
mov byte [edx + eax*4 + 0x29], al
mov edx, dword [esi]
mov byte [edx + eax*4 + 0x28], al
mov edx, dword [esi]
mov byte [edx + eax*4 + 0x2b], cl
inc eax
cmp eax, 0x100
jl 0x10150185
cmp ebx, ecx
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x60]
mov eax, dword [eax]
mov edx, dword [edx]
jle 0x10150210
mov edi, dword [esp + 0x10]
lea ebp, [edx + 1]
mov edx, dword [esp + 0x2c]
lea esi, [eax + 1]
mov dword [esp + 0x50], ebx
lea ebx, [ebx]
test edi, edi
jle 0x10150201
mov ecx, esi
mov eax, ebp
jmp 0x101501e0
movzx ebx, byte [eax - 1]
mov byte [ecx - 1], bl
movzx ebx, byte [eax]
mov byte [ecx], bl
movzx ebx, byte [eax + 1]
mov byte [ecx + 1], bl
add eax, edx
add ecx, 3
sub edi, 1
jne 0x101501e0
mov edi, dword [esp + 0x10]
add esi, dword [esp + 0x4c]
add ebp, dword [esp + 0x70]
sub dword [esp + 0x50], 1
jne 0x101501d0
mov ecx, dword [esp + 0x90]
fld qword [0x102cf220]
fstp qword [ecx + 0x40c]
mov eax, 0xff
fld qword [0x102cf218]
xor edx, edx
mov dword [ecx + 0x408], eax
fstp qword [ecx + 0x414]
mov dword [ecx + 0x430], eax
mov dword [ecx + 0x404], edx
mov dword [ecx + 0x42c], edx
xor eax, eax
add ecx, 0x204
mov edx, eax
shl edx, 4
mov word [ecx], dx
inc eax
add ecx, 2
cmp eax, 0x100
jl 0x10150256
xor eax, eax
jmp 0x1014fc23
pop ebp
pop esi
mov eax, 2
pop edi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.100dba62
add esp, 0x188
ret
mov eax, 1
pop edi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.100dba62
add esp, 0x188
ret
mov ecx, dword [esp + 0x188]
pop edi
xor ecx, esp
mov eax, 2
call fcn.100dba62
add esp, 0x188
ret