Function at 0x4f6e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 4], eax
fld1
push ebx
fst qword [ebp - 0x1c4]
xor ebx, ebx
fst qword [ebp - 0x1bc]
push esi
mov esi, dword [ebp + 8]
fst qword [ebp - 0x1b4]
mov eax, dword [esi + 0x65e8]
fst qword [ebp - 0x1ac]
fldz
mov dword [ebp - 0x338], 0x10
fst qword [ebp - 0x1a4]
mov dword [ebp - 0x33c], ebx
fst qword [ebp - 0x19c]
mov dword [ebp - 0x324], ebx
fst qword [ebp - 0x194]
mov dword [ebp - 0x320], 0x3020100
fstp qword [ebp - 0x18c]
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
fst qword [ebp - 0x184]
mov dword [ebp - 0x15c], ebx
fst qword [ebp - 0x17c]
mov dword [ebp - 0x158], 0xfff
fstp qword [ebp - 0x174]
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x32c], ebx
cmp eax, 0xa
jb 0x4f6f38
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x31c], eax
inc eax
push edi
mov dword [esi + 0x65e8], eax
xor edi, edi
lea ecx, [ebp - 0x2a4]
mov edi, edi
xor eax, eax
xor edx, edx
cmp eax, edi
sete dl
inc eax
add ecx, 8
mov dword [ebp - 0x308], edx
fild dword [ebp - 0x308]
fstp qword [ecx - 8]
cmp eax, 4
jl 0x4f6f52
inc edi
cmp edi, 4
jl 0x4f6f50
push esi
call fcn.004e0df0
movzx eax, ax
add esp, 4
cmp eax, 0x200
jbe 0x4f6fa0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
cmp eax, ebx
je 0x4f864f
jmp 0x4f6fb0
mov ebx, dword [ebp + 0xc]
dec eax
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x344]
push eax
push ebx
push esi
call fcn.004f0d60
mov edi, dword [ebp - 0x344]
add esp, 0x18
cmp edi, 0x827d
ja 0x4f7865
je 0x4f7849
cmp edi, 0x26
ja 0x4f70bc
cmp edi, 0x24
jae 0x4f7098
lea eax, [edi - 2]
cmp eax, 0x15
ja case.0x4f802e.50713
movzx ecx, byte [eax + 0x4f8800]
jmp dword [ecx*4 + 0x4f87e8]
cmp dword [ebp - 0x310], 3
jne case.0x4f802e.50713
cmp dword [ebp - 0x314], 1
jne case.0x4f802e.50713
push esi
call fcn.004e0df0
movzx edx, ax
mov dword [ebp - 0x308], edx
add esp, 4
fild dword [ebp - 0x308]
fmul qword [0x516da0]
fstp dword [esi + edi*8 + 0xe6ec]
jmp case.0x4f802e.50713
cmp dword [ebp - 0x310], 3
jne case.0x4f802e.50713
push esi
call fcn.004e0df0
movzx eax, ax
mov dword [ebp - 0x308], eax
add esp, 4
fild dword [ebp - 0x308]
fstp dword [esi + 0x6590]
jmp case.0x4f802e.50713
push esi
call fcn.004e0df0
movzx ecx, ax
mov dword [ebp - 0x308], ecx
add esp, 4
fild dword [ebp - 0x308]
fstp dword [esi + edi*4 + 0xe6e4]
jmp case.0x4f802e.50713
cmp edi, 0x131
ja 0x4f74b0
je case.0x4f701d.11
add edi, 0xffffffd9
cmp edi, 0xfc
ja case.0x4f802e.50713
movzx edx, byte [edi + 0x4f885c]
jmp dword [edx*4 + 0x4f8818]
cmp dword [ebp - 0x314], 0x32
jb case.0x4f802e.50713
fld dword [esi + 0xe774]
lea edi, [esi + 0xe774]
fldz
fucompp
fnstsw ax
test ah, 0x44
jp case.0x4f802e.50713
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 8]
push 1
push 0xc
push ecx
call edx
add esp, 0xc
mov ebx, 3
lea ebx, [ebx]
push esi
call fcn.004e0df0
movzx eax, ax
mov dword [ebp - 0x308], eax
add esp, 4
add edi, 4
dec ebx
fild dword [ebp - 0x308]
fstp dword [edi - 4]
jne 0x4f7130
jmp case.0x4f802e.50713
cmp dword [ebp - 0x310], 7
jne case.0x4f802e.50713
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 0x1c]
push edx
call eax
add esp, 4
cmp eax, 0xff
jne case.0x4f802e.50713
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 0x1c]
push edx
call eax
add esp, 4
cmp eax, 0xd8
jne case.0x4f802e.50713
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 0x18]
push edx
call eax
mov ecx, dword [ebp - 0x314]
add esp, 4
sub eax, 2
mov dword [esi + 0x65c4], eax
mov dword [esi + 0x65d0], ecx
jmp case.0x4f802e.50713
mov edx, dword [ebp - 0x310]
push edx
push esi
call fcn.004e0ed0
mov ecx, dword [ebp - 0x31c]
lea ecx, [ecx + ecx*8]
add esp, 8
mov dword [esi + ecx*4 + 0x60f0], eax
jmp case.0x4f802e.50713
mov edx, dword [ebp - 0x310]
push edx
push esi
call fcn.004e0ed0
mov ecx, dword [ebp - 0x31c]
lea ecx, [ecx + ecx*8]
add esp, 8
mov dword [esi + ecx*4 + 0x60f4], eax
jmp case.0x4f802e.50713
mov eax, dword [ebp - 0x31c]
lea edx, [eax + eax*8]
mov eax, dword [ebp - 0x314]
lea edi, [esi + edx*4]
and eax, 7
push esi
mov dword [edi + 0x610c], eax
call fcn.004e0df0
movzx ecx, ax
add esp, 4
mov dword [edi + 0x60f8], ecx
jmp case.0x4f802e.50713
push esi
call fcn.004e0df0
movzx edx, ax
mov eax, dword [ebp - 0x31c]
lea eax, [eax + eax*8]
add esp, 4
mov dword [esi + eax*4 + 0x60fc], edx
jmp case.0x4f802e.50713
push esi
call fcn.004e0df0
movzx ecx, ax
mov eax, dword [ebp - 0x31c]
lea edx, [eax + eax*8]
add esp, 4
mov dword [esi + edx*4 + 0x6100], ecx
jmp case.0x4f802e.50713
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [eax]
push 1
push 0x200
lea ecx, [esi + 0x6285]
push ecx
push edx
call eax
add esp, 0x10
jmp case.0x4f802e.50713
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [ecx + 0x10]
push 0x40
lea edx, [esi + 0x6485]
push edx
push eax
call ecx
add esp, 0xc
jmp case.0x4f802e.50713
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [edx + 0x10]
push 0x40
lea eax, [esi + 0x64c5]
push eax
push ecx
call edx
add esp, 0xc
jmp case.0x4f802e.50713
cmp dword [ebp - 0x310], 4
jne case.0x4f802e.50713
mov dword [esi + 0x2e7fc], 0x4e72f0
mov dword [esi + 0x66ac], 0x2008
push esi
call fcn.004e0e90
add ebx, eax
mov eax, dword [ebp - 0x31c]
lea ecx, [eax + eax*8]
lea edi, [esi + ecx*4]
add esp, 4
cmp dword [edi + 0x60f8], 0
mov dword [edi + 0x6104], ebx
jne case.0x4f802e.50713
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 8]
push 0
push ebx
push eax
call ecx
push 1
lea edx, [ebp - 0x214]
push edx
push esi
call fcn.004e2c50
add esp, 0x18
test eax, eax
je case.0x4f802e.50713
mov eax, dword [ebp - 0x208]
mov edx, dword [ebp - 0x20c]
xor ecx, ecx
cmp eax, 2
sete cl
shl edx, cl
mov ecx, dword [ebp - 0x210]
mov dword [edi + 0x60fc], 6
mov dword [edi + 0x60f4], ecx
mov dword [edi + 0x60f0], edx
mov edx, dword [ebp - 0x214]
mov dword [edi + 0x60f8], edx
mov dword [edi + 0x610c], eax
jmp case.0x4f802e.50713
push esi
call fcn.004e0df0
add esp, 4
and eax, 7
movsx ecx, byte [eax + str.50132467]
mov eax, dword [ebp - 0x31c]
sub ecx, 0x30
lea edx, [eax + eax*8 + 0x1842]
mov dword [esi + edx*4], ecx
jmp case.0x4f802e.50713
mov eax, dword [ebp - 0x310]
push eax
push esi
call fcn.004e0ed0
mov ecx, eax
mov eax, dword [ebp - 0x31c]
add esp, 8
and ecx, 7
lea edx, [eax + eax*8]
mov dword [esi + edx*4 + 0x610c], ecx
jmp case.0x4f802e.50713
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x10]
push 0x40
lea ecx, [ebp - 0x54]
push ecx
push edx
call eax
push 5
lea ecx, [ebp - 0x54]
push 0x53d7fc
push ecx
call sub.MSVCR100.dll_strncmp
add esp, 0x18
test eax, eax
je 0x4f74a1
push 5
lea edx, [ebp - 0x54]
push str.dcraw
push edx
call sub.MSVCR100.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4f74a1
push 5
lea eax, [ebp - 0x54]
push str.UFRaw
push eax
call sub.MSVCR100.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4f74a1
push 6
lea ecx, [ebp - 0x54]
push str.Bibble
push ecx
call sub.MSVCR100.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4f74a1
push 0xa
lea edx, [ebp - 0x54]
push str.Nikon_Scan
push edx
call sub.MSVCR100.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4f74a1
mov ecx, str.Digital_Photo_Professional
lea eax, [ebp - 0x54]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4f7494
test dl, dl
je 0x4f7490
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4f7494
add eax, 2
add ecx, 2
test dl, dl
jne 0x4f7474
xor eax, eax
jmp 0x4f7499
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne case.0x4f802e.50713
mov dword [esi + 0x6614], 0
jmp case.0x4f802e.50713
cmp edi, 0x202
ja 0x4f76c7
je case.0x4f70e4.279
add edi, 0xfffffece
cmp edi, 0xcf
ja case.0x4f802e.50713
movzx eax, byte [edi + 0x4f8980]
jmp dword [eax*4 + 0x4f895c]
push 0
push esi
call fcn.004f22e0
add esp, 8
jmp case.0x4f802e.50713
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [eax]
push 1
push 0x40
lea ecx, [esi + 0x6545]
push ecx
push edx
call eax
add esp, 0x10
jmp case.0x4f802e.50713
mov ecx, dword [ebp - 0x310]
push ecx
push esi
call fcn.004e0ed0
add esp, 8
mov dword [esi + 0x6624], eax
jmp case.0x4f802e.50713
mov edx, dword [ebp - 0x310]
push edx
push esi
call fcn.004e0ed0
add esp, 8
mov dword [esi + 0x6628], eax
jmp case.0x4f802e.50713
mov edi, dword [ebp - 0x314]
cmp edi, 1
jbe 0x4f755d
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 0x18]
push ecx
call edx
jmp 0x4f7563
push esi
call fcn.004e0e90
mov ecx, dword [ebp - 0x31c]
add esp, 4
lea ecx, [ecx + ecx*8]
mov dword [esi + ecx*4 + 0x6104], eax
cmp edi, 4
jne case.0x4f802e.50713
mov dword [esi + 0x2e7fc], 0x4f6c20
mov dword [esi + 0x6614], 5
jmp case.0x4f802e.50713
mov edi, str.DSLR_A100
lea eax, [esi + 0x64c5]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x4f75c3
test cl, cl
je 0x4f75bf
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x4f75c3
add eax, 2
add edi, 2
test cl, cl
jne 0x4f75a3
xor eax, eax
jmp 0x4f75c8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4f7608
mov eax, dword [ebp - 0x31c]
lea edx, [eax + eax*8]
cmp dword [esi + edx*4 + 0x60f0], 0xf20
jne 0x4f7608
push esi
mov dword [esi + 0x2e7fc], 0x4ea470
call fcn.004e0e90
add eax, ebx
add esp, 4
inc dword [ebp - 0x31c]
mov dword [esi + 0x65c0], eax
jmp case.0x4f802e.50713
cmp dword [ebp - 0x314], 0
je 0x4f7678
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 0x18]
dec dword [ebp - 0x314]
push ecx
call edx
mov edi, dword [esi]
add esp, 4
push 0
push esi
mov dword [ebp - 0x318], eax
call fcn.004e0e90
mov ecx, dword [edi + 8]
add eax, ebx
add esp, 4
push eax
mov eax, dword [esi + 4]
push eax
call ecx
push ebx
push esi
call fcn.004f6e60
add esp, 0x14
test eax, eax
jne case.0x4f802e.50713
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [edx + 8]
push eax
mov eax, dword [ebp - 0x318]
add eax, 4
push eax
push ecx
call edx
add esp, 0xc
cmp dword [ebp - 0x314], 0
jne 0x4f7611
dec dword [ebp - 0x314]
jmp case.0x4f802e.50713
mov eax, dword [str.Sarnoff]
mov dword [esi + 0x6485], eax
mov ecx, dword [0x53d7ac]
mov dword [esi + 0x6489], ecx
mov dword [esi + 0x65fc], 0xfff
jmp case.0x4f802e.50713
push esi
call fcn.004e0e90
mov ecx, dword [ebp - 0x31c]
lea edx, [ecx + ecx*8]
add esp, 4
mov dword [esi + edx*4 + 0x6110], eax
jmp case.0x4f802e.50713
cmp edi, 0x7221
ja 0x4f779f
je 0x4f778b
sub edi, 0x7010
je 0x4f7718
sub edi, 0x1f0
je 0x4f7704
dec edi
jne case.0x4f802e.50713
push esi
call fcn.004e0e90
add esp, 4
mov dword [ebp - 0x330], eax
jmp case.0x4f802e.50713
push esi
call fcn.004e0e90
add esp, 4
mov dword [ebp - 0x334], eax
jmp case.0x4f802e.50713
xor edi, edi
lea ebx, [ebx]
push esi
call fcn.004e0df0
inc edi
add esp, 4
shr eax, 2
and eax, 0xfff
mov dword [ebp + edi*4 - 0x16c], eax
cmp edi, 4
jl 0x4f7720
xor ecx, ecx
mov edi, dword [ebp + ecx*4 - 0x16c]
inc edi
cmp edi, dword [ebp + ecx*4 - 0x168]
jg 0x4f7780
mov eax, dword [ebp + ecx*4 - 0x168]
mov ebx, 1
sub eax, edi
shl bx, cl
lea edx, [esi + edi*2 + 0x6764]
inc eax
lea ebx, [ebx]
mov di, word [edx - 2]
add di, bx
mov word [edx], di
add edx, 2
dec eax
jne 0x4f7770
inc ecx
cmp ecx, 5
jl 0x4f7740
jmp case.0x4f802e.50713
push esi
call fcn.004e0e90
add esp, 4
mov dword [ebp - 0x32c], eax
jmp case.0x4f802e.50713
sub edi, 0x7250
je 0x4f7826
sub edi, 0xb3
je 0x4f77f0
sub edi, 0x10
jne case.0x4f802e.50713
lea esp, [esp]
push esi
call fcn.004e0df0
movzx eax, ax
mov ecx, edi
sar ecx, 1
mov dword [ebp - 0x308], eax
xor ecx, edi
inc edi
fild dword [ebp - 0x308]
add esp, 4
fstp dword [esi + ecx*4 + 0xe774]
cmp edi, 4
jl 0x4f77c0
jmp case.0x4f802e.50713
xor edi, edi
push esi
call fcn.004e0df0
movzx edx, ax
xor eax, eax
add esp, 4
cmp edi, 2
setl al
mov dword [ebp - 0x308], edx
fild dword [ebp - 0x308]
xor eax, edi
inc edi
fstp dword [esi + eax*4 + 0xe774]
cmp edi, 4
jl 0x4f77f2
jmp case.0x4f802e.50713
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 0x18]
push edx
call eax
push eax
push esi
call fcn.004f9160
add esp, 0xc
xor ecx, ecx
mov word [esi + 0x66b2], cx
jmp case.0x4f802e.50713
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [edx + 0x10]
push 0x40
lea eax, [esi + 0x6505]
push eax
push ecx
call edx
add esp, 0xc
jmp case.0x4f802e.50713
cmp edi, 0xc51a
ja 0x4f7f17
je 0x4f7ed4
cmp edi, 0x8773
ja 0x4f7aaf
je case.0x4f802e.50831
cmp edi, 0x85ff
ja 0x4f7916
je 0x4f7a5e
add edi, 0xffff7d72
cmp edi, 0xf
ja case.0x4f802e.50713
movzx eax, byte [edi + 0x4f8a64]
jmp dword [eax*4 + 0x4f8a50]
mov edi, dword [esi]
push 0
push esi
call fcn.004e0e90
mov ecx, dword [esi + 4]
mov edx, dword [edi + 8]
add esp, 4
add eax, ebx
push eax
push ecx
call edx
push ebx
push esi
call fcn.004f2d60
add esp, 0x14
jmp case.0x4f802e.50713
mov eax, dword [ebp - 0x310]
push eax
push esi
call fcn.004e0f10
fstp dword [esi + 0x6594]
add esp, 8
jmp case.0x4f802e.50713
mov ecx, dword [ebp - 0x310]
push ecx
push esi
call fcn.004e0f10
fstp dword [esi + 0x6598]
add esp, 8
jmp case.0x4f802e.50713
cmp edi, 0x8606
ja 0x4f7a7b
je 0x4f7a49
sub edi, 0x8602
je 0x4f7a06
dec edi
jne case.0x4f802e.50713
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [edx]
push 7
push 1
lea eax, [ebp - 0x54]
push eax
push ecx
call edx
push 6
lea eax, [ebp - 0x54]
push 0x53d7a0
push eax
call sub.MSVCR100.dll_strncmp
add esp, 0x1c
test eax, eax
jne case.0x4f802e.50713
xor ebx, ebx
lea ecx, [esi + 0xe7c4]
mov dword [esi + 0x66d0], 4
mov dword [esi + 0x6604], ebx
mov dword [ebp - 0x308], ecx
xor edi, edi
mov edx, dword [esi]
mov eax, edi
xor eax, 1
add eax, ebx
lea ecx, [esi + eax*4 + 0xe7c4]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [edx + 0x20]
push 0x5463bc
push eax
call ecx
inc edi
add esp, 0xc
cmp edi, 4
jl 0x4f7988
cmp dword [esi + 0xdc], 0
je 0x4f79f2
mov edx, dword [ebp - 0x308]
fldz
mov eax, edx
mov ecx, 4
fadd dword [eax]
add eax, 4
dec ecx
jne 0x4f79c8
fstp dword [ebp - 0x318]
mov eax, edx
fld dword [ebp - 0x318]
mov ecx, 4
fld dword [eax]
add eax, 4
dec ecx
fdiv st(1)
fstp dword [eax - 4]
jne 0x4f79e3
fstp st(0)
add dword [ebp - 0x308], 0x10
add ebx, 4
cmp ebx, 0xc
jl 0x4f7986
jmp case.0x4f802e.50713
xor edi, edi
push esi
call fcn.004e0df0
movzx edx, ax
mov dword [ebp - 0x308], edx
mov eax, edi
xor eax, 1
fild dword [ebp - 0x308]
inc edi
add esp, 4
fdivr qword [0x53d798]
fstp dword [ebp - 0x308]
fld dword [ebp - 0x308]
fstp dword [esi + eax*4 + 0xe774]
cmp edi, 4
jl 0x4f7a08
jmp case.0x4f802e.50713
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 0x18]
push edx
call eax
push eax
push esi
call fcn.004f2840
add esp, 0xc
mov ecx, dword [str.Leaf]
mov dword [esi + 0x6485], ecx
mov dl, byte [0x538ca8]
mov byte [esi + 0x6489], dl
jmp case.0x4f802e.50713
cmp edi, 0x8769
jne case.0x4f802e.50713
mov edi, dword [esi]
push 0
push esi
call fcn.004e0e90
mov ecx, dword [edi + 8]
add eax, ebx
add esp, 4
push eax
mov eax, dword [esi + 4]
push eax
call ecx
push ebx
push esi
call fcn.004f23d0
add esp, 0x14
jmp case.0x4f802e.50713
cmp edi, 0x9218
ja 0x4f7bcc
je 0x4f7b5d
cmp edi, 0x920a
ja 0x4f7b36
je 0x4f7b1b
cmp edi, 0x8825
je 0x4f7af3
cmp edi, 0x9102
jne case.0x4f802e.50713
push esi
call fcn.004e0e90
add esp, 4
mov dword [esi + 0x65ac], eax
jmp case.0x4f802e.50713
mov edi, dword [esi]
push 0
push esi
call fcn.004e0e90
mov edx, dword [esi + 4]
add eax, ebx
add esp, 4
push eax
mov eax, dword [edi + 8]
push edx
call eax
push ebx
push esi
call fcn.004f2630
add esp, 0x14
jmp case.0x4f802e.50713
mov ecx, dword [ebp - 0x310]
push ecx
push esi
call fcn.004e0f10
fstp dword [esi + 0x659c]
add esp, 8
jmp case.0x4f802e.50713
cmp edi, 0x9211
jne case.0x4f802e.50713
mov edx, dword [ebp - 0x310]
push edx
push esi
call fcn.004e0ed0
add esp, 8
mov dword [esi + 0x65a8], eax
jmp case.0x4f802e.50713
lea eax, [esi + 0xe7c4]
mov dword [esi + 0x6604], 0
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x318], 3
lea ecx, [ecx]
mov ecx, dword [ebp - 0x310]
push ecx
push esi
call fcn.004e0f10
fstp st(0)
mov edi, dword [ebp - 0x308]
add esp, 8
mov ebx, 3
lea ecx, [ecx]
mov edx, dword [ebp - 0x310]
push edx
push esi
call fcn.004e0f10
fstp dword [edi]
add esp, 8
add edi, 4
dec ebx
jne 0x4f7ba0
add dword [ebp - 0x308], 0x10
dec dword [ebp - 0x318]
jne 0x4f7b80
jmp case.0x4f802e.50713
cmp edi, 0xb4c7
ja 0x4f7e1b
je 0x4f7c30
cmp edi, 0xb4c3
jne case.0x4f802e.50713
mov eax, dword [str.Imacon]
mov dword [esi + 0x6485], eax
mov cx, word [0x53d790]
mov eax, dword [esi]
mov word [esi + 0x6489], cx
mov dl, byte [0x53d792]
mov ecx, dword [esi + 4]
mov byte [esi + 0x648b], dl
mov edx, dword [eax + 0x18]
push ecx
call edx
mov dword [esi + 0x65c0], eax
mov eax, dword [ebp - 0x314]
add esp, 4
mov dword [ebp - 0x324], eax
jmp case.0x4f802e.50713
cmp dword [ebp - 0x324], 0
je case.0x4f802e.50713
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 8]
push 1
push 0x4e
push edx
call eax
push esi
call fcn.004e0e90
push esi
mov word [esi + 0x66b2], ax
call fcn.004e0e90
push esi
mov word [esi + 0x66b0], ax
call fcn.004e0e90
and eax, 7
push esi
mov word [esi + 0x66ba], ax
call fcn.004e0e90
mov cx, word [esi + 0x66b2]
and eax, 7
sub cx, ax
sub cx, word [esi + 0x66ba]
push esi
mov word [esi + 0x66b6], cx
call fcn.004e0e90
and eax, 7
push esi
mov word [esi + 0x66b8], ax
call fcn.004e0e90
mov dx, word [esi + 0x66b0]
and eax, 7
sub dx, ax
sub dx, word [esi + 0x66b8]
mov eax, 0x1c5e
add esp, 0x24
mov word [esi + 0x66b4], dx
cmp word [esi + 0x66b2], ax
jne 0x4f7cef
mov eax, 7
mov dword [esi + 0x66b4], 0x1c4c1544
mov word [esi + 0x66ba], ax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 8]
push 1
push 0x34
push edx
call eax
add esp, 0xc
lea edi, [esi + 0xe774]
mov ebx, 3
lea esp, [esp]
push 0xb
push esi
call fcn.004e0f10
fstp dword [edi]
add esp, 8
add edi, 4
dec ebx
jne 0x4f7d10
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 8]
push 1
push 0x72
push edx
call eax
push esi
call fcn.004e0df0
movzx edi, word [esi + 0x66b6]
movzx ebx, word [esi + 0x66b4]
movzx eax, ax
mov edx, ebx
mov ecx, edi
imul ecx, edx
shr eax, 7
imul eax, eax, 0x5a
lea ecx, [ecx + ecx*2]
add ecx, ecx
add esp, 0x10
mov dword [esi + 0x66c8], eax
cmp ecx, dword [ebp - 0x324]
jne 0x4f7da5
cdq
mov ecx, 0xb4
idiv ecx
cmp edx, 0x5a
jne 0x4f7d97
mov eax, ebx
xor eax, edi
mov word [esi + 0x66b6], ax
movzx eax, ax
xor eax, ebx
xor word [esi + 0x66b6], ax
mov word [esi + 0x66b4], ax
xor eax, eax
mov dword [esi + 0x66c8], eax
mov dword [esi + 0x65b0], eax
movzx edx, word [esi + 0x66b4]
movzx ecx, word [esi + 0x66b6]
imul ecx, edx
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea ecx, [esi + 0x64c5]
push str.Ixpress__d_Mp
push ecx
call sub.MSVCR100.dll_sprintf
add esp, 0xc
cmp dword [esi + 0x65b0], 0
mov dword [esi + 0x2e7fc], 0x4e6b60
je 0x4f7e0c
test byte [esi + 0x66ba], 1
je 0x4f7e02
mov dword [esi + 0x65b0], 0x61616161
mov dword [esi + 0x2e7fc], fcn.004e6ea0
mov dword [esi + 0x65fc], 0xffff
jmp case.0x4f802e.50713
cmp edi, 0xc516
jb case.0x4f802e.50713
cmp edi, 0xc517
ja case.0x4f802e.50713
mov ebx, dword [ebp - 0x314]
push ebx
call sub.MSVCR100.dll_malloc
add esp, 4
mov dword [ebp - 0x308], eax
test eax, eax
je case.0x4f802e.50713
mov edx, dword [esi]
mov ecx, dword [edx]
push ebx
mov edi, eax
mov eax, dword [esi + 4]
push 1
push edi
push eax
call ecx
add esp, 0x10
dec edi
je 0x4f7ec0
add ebx, dword [ebp - 0x308]
lea esp, [esp]
cmp edi, ebx
jae 0x4f7ec0
push 8
inc edi
push str.Neutral
push edi
call sub.MSVCR100.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4f7eaf
lea eax, [esi + 0xe77c]
push eax
lea ecx, [esi + 0xe778]
push ecx
lea edx, [esi + 0xe774]
push edx
lea eax, [edi + 8]
push str._f__f__f
push eax
call sub.MSVCR100.dll_sscanf
add esp, 0x14
push 0xa
push edi
call sub.MSVCR100.dll_strchr
mov edi, eax
add esp, 8
test edi, edi
jne 0x4f7e70
mov ecx, dword [ebp - 0x308]
push ecx
call sub.MSVCR100.dll_free
add esp, 4
jmp case.0x4f802e.50713
cmp byte [esi + 0x6485], 0
jne case.0x4f802e.50713
mov edx, dword [str.Hasselblad]
mov dword [esi + 0x6485], edx
mov eax, dword [0x53d75c]
mov dword [esi + 0x6489], eax
mov cx, word [0x53d760]
mov word [esi + 0x648d], cx
mov dl, byte [0x53d762]
mov byte [esi + 0x648f], dl
jmp case.0x4f802e.50713
cmp edi, 0xc612
ja 0x4f8006
je 0x4f7fbd
cmp edi, 0xc51b
jne case.0x4f802e.50713
movsx eax, word [esi + 0x6274]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 0x318], eax
mov eax, dword [ecx + 0x18]
push edx
call eax
mov ecx, dword [esi + 0x65e8]
push esi
mov ebx, eax
mov dword [ebp - 0x308], ecx
call fcn.004e0df0
push esi
mov word [esi + 0x6274], ax
call fcn.004e0df0
mov edi, dword [esi]
add esp, 0xc
push 0
push esi
call fcn.004e0e90
mov edx, dword [esi + 4]
add eax, ebx
add esp, 4
push eax
mov eax, dword [edi + 8]
push edx
call eax
push ebx
push esi
call fcn.004f6e60
mov ecx, dword [ebp - 0x308]
mov dx, word [ebp - 0x318]
add esp, 0x14
mov dword [esi + 0x65fc], 0xffff
mov dword [esi + 0x65e8], ecx
mov word [esi + 0x6274], dx
jmp case.0x4f802e.50713
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 0x1c]
push ecx
call edx
mov ecx, dword [esi + 0x6618]
shl ecx, 8
add eax, ecx
add esp, 4
dec edi
mov dword [esi + 0x6618], eax
jne 0x4f7fc2
cmp byte [esi + 0x6485], 0
jne 0x4f7ff7
mov dword [esi + 0x6485], 0x474e44
mov dword [esi + 0x6614], 1
jmp case.0x4f802e.50713
cmp edi, 0xfd04
ja 0x4f8429
je 0x4f83e1
lea eax, [edi - 0xc616]
cmp eax, 0x79
ja case.0x4f802e.50713
movzx edx, byte [eax + 0x4f8ab4]
jmp dword [edx*4 + 0x4f8a74]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 0x18]
push ecx
call edx
mov dword [esi + 0x65cc], eax
mov eax, dword [ebp - 0x314]
add esp, 4
mov dword [esi + 0x65d8], eax
jmp case.0x4f802e.50713
mov eax, dword [ebp - 0x314]
cmp eax, 4
jbe 0x4f8070
mov eax, 4
mov dword [ebp - 0x314], eax
mov ecx, dword [esi]
push eax
mov dword [esi + 0x66d0], eax
mov eax, dword [esi + 4]
mov ecx, dword [ecx]
push 1
lea edx, [ebp - 0x320]
push edx
push eax
call ecx
mov ebx, dword [ebp - 0x338]
add esp, 0x10
jmp 0x4f84e2
push esi
call fcn.004e0df0
add esp, 4
cmp ax, 2
jne case.0x4f802e.50713
mov edx, 1
mov word [esi + 0x66c2], dx
mov dword [esi + 0x65b0], 0x49494949
jmp case.0x4f802e.50713
mov eax, dword [ebp - 0x314]
push eax
push esi
call fcn.004f2cf0
add esp, 8
jmp case.0x4f802e.50713
fldz
mov edi, dword [ebp - 0x314]
fst qword [ebp - 0x30c]
test edi, edi
jle 0x4f8114
mov ebx, dword [ebp - 0x310]
push ebx
fstp st(0)
push esi
call fcn.004e0f10
fadd qword [ebp - 0x30c]
add esp, 8
dec edi
fst qword [ebp - 0x30c]
jne 0x4f80f3
mov edi, dword [ebp - 0x314]
mov dword [ebp - 0x308], edi
fild dword [ebp - 0x308]
test edi, edi
jns 0x4f812a
fadd qword [0x5124a0]
fdivp st(1)
fadd qword [0x546e00]
fnstcw word [ebp - 0x316]
movzx eax, word [ebp - 0x316]
or eax, 0xc00
mov dword [ebp - 0x308], eax
fldcw word [ebp - 0x308]
fistp qword [ebp - 0x30c]
mov ecx, dword [ebp - 0x30c]
add dword [esi + 0x65f8], ecx
fldcw word [ebp - 0x316]
jmp case.0x4f802e.50713
mov edx, dword [ebp - 0x310]
push edx
push esi
call fcn.004e0ed0
add esp, 8
mov dword [esi + 0x65fc], eax
jmp case.0x4f802e.50713
mov edi, dword [ebp - 0x310]
push edi
push esi
call fcn.004e0f10
fstp qword [esi + 0x66d8]
push edi
push esi
call fcn.004e0f10
fdivr qword [esi + 0x66d8]
add esp, 0x10
fstp qword [esi + 0x66d8]
jmp case.0x4f802e.50713
cmp dword [esi + 0x66d0], 0
mov dword [ebp - 0x308], 0
jle 0x4f8202
lea edi, [ebp - 0x304]
nop
mov ebx, 3
mov eax, dword [ebp - 0x310]
push eax
push esi
call fcn.004e0f10
fstp qword [edi]
add esp, 8
add edi, 8
dec ebx
jne 0x4f81d5
mov eax, dword [ebp - 0x308]
inc eax
mov dword [ebp - 0x308], eax
cmp eax, dword [esi + 0x66d0]
jl 0x4f81d0
mov dword [ebp - 0x33c], 1
jmp case.0x4f802e.50713
cmp dword [esi + 0x66d0], 0
mov dword [ebp - 0x318], 0
jle case.0x4f802e.50727
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x308], ecx
xor edi, edi
cmp dword [esi + 0x66d0], edi
jle 0x4f825e
mov ebx, dword [ebp - 0x308]
mov edx, dword [ebp - 0x310]
push edx
push esi
call fcn.004e0f10
fstp qword [ebx]
inc edi
add esp, 8
add ebx, 8
cmp edi, dword [esi + 0x66d0]
jl 0x4f8240
mov eax, dword [ebp - 0x318]
add dword [ebp - 0x308], 0x20
inc eax
mov dword [ebp - 0x318], eax
cmp eax, dword [esi + 0x66d0]
jl 0x4f8230
xor edi, edi
cmp dword [esi + 0x66d0], edi
jle case.0x4f802e.50713
mov ebx, dword [ebp - 0x310]
mov edi, edi
push ebx
push esi
call fcn.004e0f10
fstp qword [ebp + edi*8 - 0x1c4]
inc edi
add esp, 8
cmp edi, dword [esi + 0x66d0]
jl 0x4f8290
jmp case.0x4f802e.50713
xor edi, edi
cmp dword [esi + 0x66d0], edi
jle case.0x4f802e.50713
mov ebx, dword [ebp - 0x310]
push ebx
push esi
call fcn.004e0f10
fstp qword [ebp + edi*8 - 0x1a4]
inc edi
add esp, 8
cmp edi, dword [esi + 0x66d0]
jl 0x4f82c3
jmp case.0x4f802e.50713
mov edi, dword [ebp - 0x310]
push edi
push esi
call fcn.004e0f10
fstp qword [ebp - 0x184]
push edi
push esi
call fcn.004e0f10
fst qword [ebp - 0x17c]
fld1
add esp, 0x10
fsub qword [ebp - 0x184]
lea ecx, [ebp - 0x184]
mov eax, 0x539598
fsubrp st(1)
fstp qword [ebp - 0x174]
fld dword [eax]
add eax, 4
fdivr qword [ecx]
add ecx, 8
fstp qword [ecx - 8]
cmp eax, 0x5395a4
jl 0x4f8320
jmp case.0x4f802e.50713
cmp dword [esi + 0x6618], 0
jne case.0x4f802e.50713
push esi
call fcn.004e0e90
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + eax]
push edi
push esi
call fcn.004f9160
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 8]
push 0
push edi
push ecx
call edx
push ebx
push esi
call fcn.004f6e60
add esp, 0x20
jmp case.0x4f802e.50713
push 3
lea eax, [esi + 0xe766]
push eax
push esi
call fcn.004e1120
add esp, 0xc
jmp case.0x4f802e.50713
mov edi, dword [ebp - 0x310]
push edi
push esi
call fcn.004e0ed0
push edi
push esi
mov word [esi + 0x66b8], ax
call fcn.004e0ed0
push edi
push esi
mov word [esi + 0x66ba], ax
call fcn.004e0ed0
sub ax, word [esi + 0x66b8]
push edi
push esi
mov word [esi + 0x66b4], ax
call fcn.004e0ed0
add esp, 0x20
sub ax, word [esi + 0x66ba]
mov word [esi + 0x66b6], ax
jmp case.0x4f802e.50713
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 8]
push 1
push 0x10
push edx
call eax
push esi
call fcn.004e0e90
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push 1
mov dword [esi + 0x65c0], eax
mov eax, dword [ecx + 8]
push 0x1c
push edx
call eax
push esi
call fcn.004e0e90
add esp, 0x20
add dword [esi + 0x65c0], eax
mov dword [esi + 0x2e7fc], 0x4e6bd0
jmp case.0x4f802e.50713
cmp edi, 0xfd09
jne case.0x4f802e.50713
mov ebx, dword [ebp - 0x314]
mov dword [ebp - 0x338], ebx
cmp ebx, 0x10
jbe 0x4f8451
mov ebx, 0x10
mov dword [ebp - 0x338], ebx
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [ecx]
push ebx
push 1
lea edx, [ebp - 0x14]
push edx
push eax
call ecx
xor edi, edi
add esp, 0x10
xor edx, edx
mov dword [esi + 0x66d0], edi
cmp ebx, edi
jle 0x4f84e2
mov dword [ebp - 0x308], edx
lea ecx, [ecx]
mov cl, byte [ebp + edx - 0x14]
mov ebx, dword [ebp - 0x338]
mov eax, 1
shl eax, cl
mov ecx, edi
and ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
add dword [ebp - 0x308], ecx
inc edx
or edi, eax
cmp edx, ebx
jl 0x4f8480
mov edx, dword [ebp - 0x308]
mov dword [esi + 0x66d0], edx
cmp edi, 0x38
jne 0x4f84d3
mov ax, word [0x53d754]
mov cl, byte [0x53d756]
mov word [ebp - 0x320], ax
mov byte [ebp - 0x31e], cl
jmp 0x4f84e2
cmp edi, 0x3a
jne 0x4f84e2
mov dword [ebp - 0x320], 0x1040305
xor eax, eax
cmp dword [esi + 0x66d0], eax
jle 0x4f8514
mov ecx, dword [esi + 0x66d0]
jmp 0x4f8500
movzx edx, byte [ebp + eax - 0x320]
mov byte [ebp + edx - 0x154], al
inc eax
cmp eax, ecx
jl 0x4f8500
mov byte [esi + eax + 0x6280], 0
mov edi, dword [esi + 0x65b0]
mov ecx, 0x10
dec ecx
xor edx, edx
mov eax, ecx
div ebx
lea edi, [edi*4]
movzx eax, byte [ebp + edx - 0x14]
movzx edx, byte [ebp + eax - 0x154]
or edi, edx
test ecx, ecx
jne 0x4f8527
mov dword [esi + 0x65b0], edi
mov edx, dword [ebp - 0x340]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [ecx + 8]
push 0
push edx
push eax
call ecx
mov eax, dword [ebp - 0x328]
add esp, 0xc
test eax, eax
jne 0x4f6fb0
mov eax, dword [ebp - 0x330]
test eax, eax
je 0x4f864d
push eax
call sub.MSVCR100.dll_malloc
mov edi, eax
add esp, 4
test edi, edi
je 0x4f864d
mov ebx, dword [ebp - 0x334]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 8]
push 0
push ebx
push eax
call ecx
mov eax, dword [ebp - 0x330]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [edx]
push 1
push eax
push edi
push ecx
call edx
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0x330]
push eax
push 1
shr ecx, 2
push ecx
push edi
call fcn.004ea0e0
mov edx, dword [esi]
mov eax, dword [esi + 4]
add esp, 0x2c
mov dword [ebp - 0x328], edx
mov dword [ebp - 0x340], eax
mov dword [esi], 0x5518a0
call sub.MSVCR100.dll_tmpfile
mov dword [esi + 4], eax
test eax, eax
je 0x4f8633
mov edx, dword [ebp - 0x330]
mov ecx, dword [esi]
push 1
push edx
push edi
push eax
mov eax, dword [ecx + 4]
call eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 8]
push 0
push 0
push edx
call eax
neg ebx
push ebx
push esi
call fcn.004f6e60
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 0xc]
push edx
call eax
add esp, 0x28
mov ecx, dword [ebp - 0x328]
mov edx, dword [ebp - 0x340]
push edi
mov dword [esi], ecx
mov dword [esi + 4], edx
call sub.MSVCR100.dll_free
add esp, 4
xor ebx, ebx
cmp dword [esi + 0x66d0], ebx
jle 0x4f868f
mov ebx, dword [esi + 0x66d0]
lea edi, [ebp - 0x2a4]
lea ecx, [ebp - 0x1c4]
lea esp, [esp]
mov edx, dword [esi + 0x66d0]
mov eax, edi
fld qword [ecx]
add eax, 8
dec edx
fmul qword [eax - 8]
fstp qword [eax - 8]
jne 0x4f8678
add ecx, 8
add edi, 0x20
dec ebx
jne 0x4f8670
cmp dword [ebp - 0x33c], 0
je 0x4f873b
cmp dword [esi + 0x66d0], 0
jle 0x4f872b
mov ecx, dword [esi + 0x66d0]
fldz
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x334], ecx
xor edx, edx
mov dword [ebp - 0x32c], edx
mov ecx, dword [ebp - 0x324]
fst qword [eax]
mov edi, dword [esi + 0x66d0]
fld qword [eax]
lea ebx, [ebp + edx - 0x184]
lea edx, [ebp + edx - 0x304]
fld qword [edx]
add ecx, 8
fmul qword [ecx - 8]
add edx, 0x18
dec edi
fmul qword [ebx]
faddp st(1)
jne 0x4f86ef
mov edx, dword [ebp - 0x32c]
fstp qword [eax]
add edx, 8
add eax, 8
mov dword [ebp - 0x32c], edx
cmp edx, 0x18
jl 0x4f86d1
add dword [ebp - 0x324], 0x20
dec dword [ebp - 0x334]
jne 0x4f86c9
fstp st(0)
lea ecx, [ebp - 0x224]
push ecx
push esi
call fcn.004ebf90
add esp, 8
fld qword [ebp - 0x1a4]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4f878c
fldz
xor eax, eax
fstp dword [esi + 0xe780]
cmp dword [esi + 0x66d0], eax
jle 0x4f878c
fld1
lea ecx, [esi + 0xe774]
fld qword [ebp + eax*8 - 0x1a4]
inc eax
fstp dword [ebp - 0x328]
add ecx, 4
fld dword [ebp - 0x328]
fdivr st(1)
fstp dword [ecx - 4]
cmp eax, dword [esi + 0x66d0]
jl 0x4f8766
fstp st(0)
cmp dword [ebp - 0x33c], 0
jne 0x4f87d2
xor edx, edx
cmp dword [esi + 0x66d0], edx
jle 0x4f87d2
lea ecx, [ebp - 0x2a4]
lea eax, [esi + 0xe784]
jmp 0x4f87b0
fld dword [eax]
inc edx
fld qword [ecx]
add eax, 4
fstp dword [ebp - 0x328]
add ecx, 0x28
fdiv dword [ebp - 0x328]
fstp dword [eax - 4]
cmp edx, dword [esi + 0x66d0]
jl 0x4f87b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0050bf32
mov esp, ebp
pop ebp
ret