Function at 0x418120
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x78
mov eax, dword [0x4596ac]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [0x486344]
push esi
push edi
xor edi, edi
push edi
push eax
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], edi
call fcn.00435f77
add esp, 0xc
call fcn.00401240
cmp eax, 0x504b5453
jne 0x418600
push ebp
call fcn.00401240
mov edx, dword [0x486344]
push edx
push 0x28
lea eax, [esp + 0x60]
push 1
push eax
call fcn.00435763
call fcn.00401240
mov ecx, dword [0x486344]
mov esi, eax
push ecx
mov dword [esp + 0x34], esi
call fcn.00435c4a
mov ebp, eax
add esp, 0x14
mov ecx, str.JPEG_preview_data
lea eax, [esp + 0x58]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4181c3
test dl, dl
je 0x4181bf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4181c3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4181a3
xor eax, eax
jmp 0x4181c8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4181d8
mov dword [0x465c44], ebp
mov dword [0x465c5c], esi
mov ecx, str.icc_camera_profile
lea eax, [esp + 0x58]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418201
test dl, dl
je 0x4181fd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418201
add eax, 2
add ecx, 2
test dl, dl
jne 0x4181e1
xor eax, eax
jmp 0x418206
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418216
mov dword [0x4ac39c], ebp
mov dword [0x4660b4], esi
mov ecx, str.ShootObj_back_type
lea eax, [esp + 0x58]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418240
test dl, dl
je 0x41823c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418240
add eax, 2
add ecx, 2
test dl, dl
jne 0x418220
xor eax, eax
jmp 0x418245
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418282
mov eax, dword [0x486344]
lea edx, [esp + 0x10]
push edx
push 0x45b0d0
push eax
call fcn.004335c4
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, 0x15
jae 0x418282
mov eax, dword [eax*4 + 0x45b040]
mov edx, 0x466060
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x418278
mov ecx, str.icc_camera_to_tone_matrix
lea eax, [esp + 0x58]
jmp 0x418290
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4182b0
test dl, dl
je 0x4182ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4182b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x418290
xor eax, eax
jmp 0x4182b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418360
mov dword [esp + 0x10], eax
mov ecx, dword [0x486344]
push ecx
push 4
lea edx, [esp + 0x14]
push 1
push edx
mov byte [esp + 0x1c], 0xff
mov byte [esp + 0x1d], 0xff
mov byte [esp + 0x1e], 0xff
mov byte [esp + 0x1f], 0xff
call fcn.00435763
movzx ecx, byte [esp + 0x1e]
movzx edx, byte [esp + 0x1d]
mov eax, 0x4949
add esp, 0x10
cmp word [0x465c48], ax
jne 0x418320
movzx eax, byte [esp + 0xf]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0xc]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
jmp 0x418339
movzx eax, byte [esp + 0xc]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0xf]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
fld dword [esp + 0x14]
fstp dword [esp + eax*4 + 0x34]
inc eax
cmp eax, 9
mov dword [esp + 0x10], eax
jl 0x4182c1
lea eax, [esp + 0x34]
call fcn.004180a0
mov ecx, str.CaptProf_color_matrix
lea eax, [esp + 0x58]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418390
test dl, dl
je 0x41838c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418390
add eax, 2
add ecx, 2
test dl, dl
jne 0x418370
xor eax, eax
jmp 0x418395
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4183d0
mov dword [esp + 0x10], eax
lea ecx, [ecx]
mov ecx, dword [0x486344]
lea eax, [esp + eax*4 + 0x34]
push eax
push 0x45b108
push ecx
call fcn.004335c4
mov eax, dword [esp + 0x1c]
inc eax
add esp, 0xc
cmp eax, 9
mov dword [esp + 0x10], eax
jl 0x4183a0
lea eax, [esp + 0x34]
call fcn.004180a0
mov ecx, str.CaptProf_number_of_planes
lea eax, [esp + 0x58]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418400
test dl, dl
je 0x4183fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418400
add eax, 2
add ecx, 2
test dl, dl
jne 0x4183e0
xor eax, eax
jmp 0x418405
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418421
mov eax, dword [0x486344]
lea edx, [esp + 0x18]
push edx
push 0x45b128
push eax
call fcn.004335c4
add esp, 0xc
mov ecx, str.CaptProf_raw_data_rotation
lea eax, [esp + 0x58]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418450
test dl, dl
je 0x41844c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418450
add eax, 2
add ecx, 2
test dl, dl
jne 0x418430
xor eax, eax
jmp 0x418455
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418472
mov ecx, dword [0x486344]
push 0x486340
push 0x45b148
push ecx
call fcn.004335c4
add esp, 0xc
mov ecx, str.CaptProf_mosaic_pattern
lea eax, [esp + 0x58]
jmp 0x418480
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4184a0
test dl, dl
je 0x41849c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4184a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x418480
xor eax, eax
jmp 0x4184a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4184df
xor esi, esi
jmp 0x4184b0
mov eax, dword [0x486344]
lea edx, [esp + 0x10]
push edx
push 0x45b164
push eax
call fcn.004335c4
add esp, 0xc
cmp dword [esp + 0x10], 1
jne 0x4184d5
mov edi, esi
sar edi, 1
xor edi, esi
inc esi
cmp esi, 4
jl 0x4184b0
mov dword [esp + 0x1c], edi
mov ecx, str.ImgProf_rotation_angle
lea eax, [esp + 0x58]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418508
test dl, dl
je 0x418504
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418508
add eax, 2
add ecx, 2
test dl, dl
jne 0x4184e8
xor eax, eax
jmp 0x41850d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418539
mov edx, dword [0x486344]
lea ecx, [esp + 0x10]
push ecx
push 0x45b180
push edx
call fcn.004335c4
mov eax, dword [esp + 0x1c]
add esp, 0xc
sub eax, dword [0x486340]
mov dword [0x486340], eax
mov ecx, str.NeutObj_neutrals
lea eax, [esp + 0x58]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418562
test dl, dl
je 0x41855e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418562
add eax, 2
add ecx, 2
test dl, dl
jne 0x418542
xor eax, eax
jmp 0x418567
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4185d2
fldz
fcomp dword [0x466110]
fnstsw ax
test ah, 0x44
jp 0x4185d2
lea esi, [esp + 0x24]
mov edi, 4
mov ecx, dword [0x486344]
push esi
push 0x45b198
push ecx
call fcn.004335c4
add esp, 0xc
add esi, 4
sub edi, 1
jne 0x418583
fild dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
fidiv dword [esp + 0x28]
fstp dword [0x466110]
fld st(0)
fidiv dword [esp + 0x2c]
fstp dword [0x466114]
fidiv dword [esp + 0x30]
fstp dword [0x466118]
push ebp
call fcn.00418120
mov edx, dword [esp + 0x24]
mov eax, dword [0x486344]
push 0
add ebp, edx
push ebp
push eax
call fcn.00435f77
add esp, 0x10
call fcn.00401240
cmp eax, 0x504b5453
je 0x418164
pop ebp
mov esi, dword [esp + 0x14]
test esi, esi
je 0x418644
mov ecx, dword [0x486340]
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, edi
xor eax, eax
and ecx, 3
movzx edx, byte [ecx + 0x45b19c]
cmp esi, 1
sete al
imul edx, eax
imul edx, edx, 0x1010101
mov dword [0x466120], edx
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.004334ab
add esp, 0x78
ret