Function at 0x401340
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 8]
call fcn.00402170
mov dword [ebp - 0x18], 0
push 3
call sub.libvips_42.dll_vips_version
add esp, 4
mov esi, eax
push 5
call sub.libvips_42.dll_vips_version
add esp, 4
sub esi, eax
cmp esi, 0x2a
jne 0x40184e
mov esi, dword [ebp + 0xc]
push dword [esi]
call sub.libvips_42.dll_vips_init
add esp, 4
test eax, eax
jne 0x4018f0
push str.vips8.15
call fcn.004020a9
add esp, 4
push 0x4040ad
push 0
call sub.api_ms_win_crt_locale_l1_1_0.dll_setlocale
add esp, 8
push dword [esi]
call dword [sym.imp.libglib_2.0_0.dll_g_path_get_basename]
add esp, 4
mov esi, eax
push eax
call dword [sym.imp.libglib_2.0_0.dll_g_set_prgname]
add esp, 4
push esi
call dword [sym.imp.libglib_2.0_0.dll_g_free]
add esp, 4
call dword [sym.imp.libglib_2.0_0.dll_g_win32_get_command_line]
mov dword [ebp - 0x10], eax
push str._ACTION___OPTIONS___PARAMETERS____VIPS_driver_program
call fcn.00402094
add esp, 4
push eax
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_new]
add esp, 4
mov esi, eax
sub esp, 0x14
xorps xmm0, xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call dword [sym.imp.libglib_2.0_0.dll_g_option_group_new]
add esp, 0x14
mov edi, eax
push section..data
push eax
call dword [sym.imp.libglib_2.0_0.dll_g_option_group_add_entries]
add esp, 8
push edi
call sub.libvips_42.dll_vips_add_option_entries
add esp, 4
push str.vips8.15
push edi
call dword [sym.imp.libglib_2.0_0.dll_g_option_group_set_translation_domain]
add esp, 8
push edi
push esi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_set_main_group]
add esp, 8
push 1
push esi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_set_ignore_unknown_options]
add esp, 8
cmp ebx, 1
je 0x4018bb
push 0
push esi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_set_help_enabled]
add esp, 8
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
push ecx
mov dword [ebp - 0x14], esi
push esi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_parse_strv]
add esp, 0xc
test eax, eax
je 0x4018ea
mov esi, 0xffffffff
mov eax, dword [ebp - 0x10]
nop word cs:[eax + eax]
cmp dword [eax + esi*4 + 4], 0
lea esi, [esi + 1]
jne 0x401490
mov dword [ebp + 8], esi
cmp dword [0x4071c4], 0
je 0x4014c9
push str.plugin_load_disabled:_libvips_built_without_modules_support
call fcn.00402094
add esp, 4
push eax
push 0x4040e4
push 0x10
push str.VIPS
call dword [sym.imp.libglib_2.0_0.dll_g_log]
add esp, 0x10
cmp dword [0x4071c8], 0
je 0x4015d4
call sub.libvips_42.dll_vips_vector_get_builtin_targets
mov edi, eax
mov ebx, edx
push str.builtin_targets:
push 0x4040e4
call fcn.00402a50
add esp, 8
mov eax, edi
or eax, ebx
je 0x40153d
nop word [eax + eax]
mov eax, edi
neg eax
mov ecx, 0
sbb ecx, ebx
and ecx, ebx
and eax, edi
push ecx
push eax
call sub.libvips_42.dll_vips_vector_target_name
add esp, 8
push eax
push 0x404297
call fcn.00402a50
add esp, 8
mov eax, edi
add eax, 0xffffffff
mov ecx, ebx
adc ecx, 0xffffffff
and edi, eax
and ebx, ecx
mov eax, edi
or eax, ebx
jne 0x401500
jmp 0x40154a
push str._none
call fcn.00402a50
add esp, 4
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putchar
add esp, 4
call sub.libvips_42.dll_vips_vector_get_supported_targets
mov edi, eax
mov ebx, edx
push str.supported_targets:
push 0x4040e4
call fcn.00402a50
add esp, 8
mov eax, edi
or eax, ebx
je 0x4015bd
nop word cs:[eax + eax]
mov eax, edi
neg eax
mov ecx, 0
sbb ecx, ebx
and ecx, ebx
and eax, edi
push ecx
push eax
call sub.libvips_42.dll_vips_vector_target_name
add esp, 8
push eax
push 0x404297
call fcn.00402a50
add esp, 8
mov eax, edi
add eax, 0xffffffff
mov ecx, ebx
adc ecx, 0xffffffff
and edi, eax
and ebx, ecx
mov eax, edi
or eax, ebx
jne 0x401580
jmp 0x4015ca
push str._none
call fcn.00402a50
add esp, 4
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putchar
add esp, 4
cmp dword [0x4071cc], 0
je 0x4015f0
call sub.libvips_42.dll_vips_version_string
push eax
push str.vips__s_n
call fcn.00402a50
add esp, 8
push 0
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_set_ignore_unknown_options]
add esp, 8
push 1
push edi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_set_help_enabled]
add esp, 8
call dword [sym.imp.libglib_2.0_0.dll_g_get_prgname]
mov edi, eax
push eax
push 0x40429b
call sub.libvips_42.dll_vips_isprefix
add esp, 8
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ecx + ecx*2]
add eax, edi
push eax
push str.vips
call sub.libvips_42.dll_vips_isprefix
add esp, 8
test eax, eax
je 0x401673
mov edi, dword [ebp - 0x10]
cmp esi, 2
jb 0x40165d
mov eax, 1
nop dword [eax]
mov ebx, dword [edi + eax*4]
cmp byte [ebx], 0x2d
jne 0x40167e
inc eax
cmp esi, eax
jne 0x401650
lea edx, [ebp + 8]
mov esi, dword [ebp - 0x14]
mov ecx, esi
push edi
call 0x401990
add esp, 4
jmp 0x401829
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
test ebx, ebx
jne 0x4016a7
jmp 0x40163f
cmp eax, esi
jae 0x4016a3
nop word cs:[eax + eax]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ecx + eax*4], edx
lea ecx, [eax + 1]
mov eax, ecx
cmp ecx, esi
jb 0x401690
dec esi
mov dword [ebp + 8], esi
push str.list
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x401788
push str.help
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x401791
push ebx
call sub.libvips_42.dll_vips_operation_new
add esp, 4
test eax, eax
je 0x401934
mov edi, eax
push str.Operation
call fcn.00402094
add esp, 4
mov ebx, eax
push str.Operation_help
call fcn.00402094
add esp, 4
push 0
push edi
push eax
push ebx
push str.operation
call dword [sym.imp.libglib_2.0_0.dll_g_option_group_new]
add esp, 0x14
mov ebx, eax
push str.vips8.15
push eax
call dword [sym.imp.libglib_2.0_0.dll_g_option_group_set_translation_domain]
add esp, 8
push ebx
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_add_group]
add esp, 8
push edi
push ebx
call sub.libvips_42.dll_vips_call_options
add esp, 8
lea edx, [ebp + 8]
mov ecx, esi
push dword [ebp - 0x10]
call 0x401990
add esp, 4
mov esi, dword [ebp + 8]
lea eax, [esi - 1]
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push eax
push edi
call sub.libvips_42.dll_vips_call_argv
add esp, 0xc
test eax, eax
jne 0x40194d
push edi
call sub.libvips_42.dll_vips_object_unref_outputs
add esp, 4
push edi
call dword [sym.imp.libgobject_2.0_0.dll_g_object_unref]
add esp, 4
mov esi, dword [ebp - 0x14]
jmp 0x401829
mov dword [ebp - 0x1c], 0
jmp 0x401798
mov dword [ebp - 0x1c], 1
push str.Operation
call fcn.00402094
add esp, 4
mov edi, eax
push str.Operation_help
call fcn.00402094
add esp, 4
push 0
push 0
push eax
push edi
push str.operation
call dword [sym.imp.libglib_2.0_0.dll_g_option_group_new]
add esp, 0x14
mov edi, eax
push str.vips8.15
push eax
call dword [sym.imp.libglib_2.0_0.dll_g_option_group_set_translation_domain]
add esp, 8
push edi
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_add_group]
add esp, 8
push 0x4071a8
push edi
call dword [sym.imp.libglib_2.0_0.dll_g_option_group_add_entries]
add esp, 8
lea edx, [ebp + 8]
mov ecx, esi
push dword [ebp - 0x10]
call 0x401990
add esp, 4
mov edx, dword [ebp - 0x1c]
shl edx, 4
mov eax, dword [ebp + 8]
dec eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push eax
call dword [edx + 0x404164]
add esp, 8
test eax, eax
jne 0x401929
push esi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_free]
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.libglib_2.0_0.dll_g_strfreev]
add esp, 4
call sub.libvips_42.dll_vips_shutdown
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [sym.imp.libglib_2.0_0.dll_g_log]
push str.ABI_mismatch
push 0x10
push str.VIPS
call edi
add esp, 0xc
push 3
call sub.libvips_42.dll_vips_version
add esp, 4
mov esi, eax
push 5
call sub.libvips_42.dll_vips_version
add esp, 4
sub esi, eax
push esi
push str.library_has_ABI_version__d
push 0x10
push str.VIPS
call edi
add esp, 0x10
push 0x2a
push str.application_needs_ABI_version__d
push 0x10
push str.VIPS
call edi
add esp, 0x10
push str.ABI_mismatch
push 0x40409a
call sub.libvips_42.dll_vips_error
add esp, 8
push 0
call sub.libvips_42.dll_vips_error_exit
push 0
push 1
push esi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_get_help]
add esp, 0xc
mov esi, eax
push eax
push 0x4040e4
call fcn.00402a50
add esp, 8
push esi
call dword [sym.imp.libglib_2.0_0.dll_g_free]
add esp, 4
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
cmp dword [ebp - 0x18], 0
jne 0x4018f7
push 0
call sub.libvips_42.dll_vips_error_exit
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, dword [ebp - 0x18]
push dword [ecx + 8]
push 0x4040e7
push eax
call fcn.00402a20
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.libglib_2.0_0.dll_g_error_free]
add esp, 4
push 0
call sub.libvips_42.dll_vips_error_exit
push ebx
push 0x4040e4
call sub.libvips_42.dll_vips_error_exit
call sub.libvips_42.dll_vips_error_clear
push str.unknown_action___s_
call fcn.00402094
add esp, 4
push ebx
push eax
call sub.libvips_42.dll_vips_error_exit
cmp esi, 1
jne 0x401976
push dword [edi]
call sub.libvips_42.dll_vips_operation_class_print_usage
add esp, 4
push edi
call sub.libvips_42.dll_vips_object_unref_outputs
add esp, 4
push edi
call dword [sym.imp.libgobject_2.0_0.dll_g_object_unref]
add esp, 4
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push edi
call sub.libvips_42.dll_vips_object_unref_outputs
add esp, 4
push edi
call dword [sym.imp.libgobject_2.0_0.dll_g_object_unref]
add esp, 4
push 0
call sub.libvips_42.dll_vips_error_exit
push ebp
push ebx
push edi
push esi
sub esp, 0x428
mov dword [esp + 0xc], edx
mov edi, ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x400
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 4], 0
push str.execute_vips_operation_OPER
call fcn.00402094
add esp, 4
lea ebx, [esp + 0x10]
push eax
push str.OPER
push str._7s____s_n
push ebx
call sub.libvips_42.dll_vips_buf_appendf
add esp, 0x10
push ebx
call sub.libvips_42.dll_vips_buf_all
add esp, 4
push eax
push edi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_set_summary]
add esp, 8
lea eax, [esp + 4]
lea ecx, [esp + 0x43c]
push eax
push ecx
push edi
call dword [sym.imp.libglib_2.0_0.dll_g_option_context_parse_strv]
add esp, 0xc
test eax, eax
je 0x401b5a
mov ebx, 0xffffffff
mov eax, dword [esp + 0x43c]
nop word cs:[eax + eax]
cmp dword [eax + ebx*4 + 4], 0
lea ebx, [ebx + 1]
jne 0x401a30
mov eax, dword [esp + 0xc]
mov dword [eax], ebx
cmp ebx, 2
jb 0x401b4f
mov edi, 1
xor esi, esi
mov byte [esp + 3], 3
jmp 0x401a7a
dec ebx
mov eax, dword [esp + 0xc]
mov dword [eax], ebx
mov esi, dword [esp + 8]
inc edi
inc esi
add byte [esp + 3], 3
cmp edi, ebx
jge 0x401b4f
mov eax, dword [esp + 0x43c]
push 0x40434c
push dword [eax + edi*4]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x401a6b
mov dword [esp + 8], esi
cmp edi, ebx
jge 0x401a60
mov ecx, dword [esp + 8]
not ecx
add ecx, ebx
mov eax, edi
test cl, 3
je 0x401ad6
movzx eax, byte [esp + 3]
add al, bl
movzx ecx, al
and ecx, 3
mov edx, edi
nop dword [eax + eax]
mov esi, dword [esp + 0x43c]
lea eax, [edx + 1]
mov ebp, dword [esi + edx*4 + 4]
mov dword [esi + edx*4], ebp
mov edx, eax
dec ecx
jne 0x401ac0
mov ecx, ebx
sub ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 3
jb 0x401a60
mov ecx, ebx
sub ecx, eax
shl eax, 2
xor edx, edx
nop word cs:[eax + eax]
mov esi, dword [esp + 0x43c]
add esi, eax
mov ebp, dword [esi + edx*4 + 4]
mov dword [esi + edx*4], ebp
mov esi, dword [esp + 0x43c]
add esi, eax
mov ebp, dword [esi + edx*4 + 8]
mov dword [esi + edx*4 + 4], ebp
mov esi, dword [esp + 0x43c]
add esi, eax
mov ebp, dword [esi + edx*4 + 0xc]
mov dword [esi + edx*4 + 8], ebp
mov esi, dword [esp + 0x43c]
add esi, eax
mov ebp, dword [esi + edx*4 + 0x10]
mov dword [esi + edx*4 + 0xc], ebp
add edx, 4
cmp ecx, edx
jne 0x401b00
jmp 0x401a60
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 4], 0
je 0x401b8e
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, dword [esp + 4]
push dword [ecx + 8]
push 0x4040e7
push eax
call fcn.00402a20
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.libglib_2.0_0.dll_g_error_free]
add esp, 4
push 0
call sub.libvips_42.dll_vips_error_exit
int3