Function at 0x4043e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x690970
call fcn.0053ee50
mov eax, dword [0x690f20]
test eax, eax
je 0x4049c1
push str.currentglobal_true_setglobal_n
call fcn.00403aa0
mov al, byte [0x6914aa]
add esp, 4
test al, al
je 0x404424
push str.____MaxSuperScreen_1016____setuserparams_n
jmp 0x404429
push str.____MaxSuperScreen_0____setuserparams_n
call fcn.00403aa0
mov eax, dword [0x690a00]
add esp, 4
cmp eax, 0xd
ja case.0x404446.2
movzx ecx, byte [eax + 0x4049d8]
jmp dword [ecx*4 + 0x4049cc]
cmp eax, 7
mov dword [esp + 0x10], 0x66b4b8
je 0x404462
mov dword [esp + 0x10], 0x66ac4a
push str.__LX128___HalftoneType_5
mov byte [esp + 0x18], 0x63
mov byte [esp + 0x19], 0x6d
mov byte [esp + 0x1a], 0x79
mov byte [esp + 0x1b], 0x6b
xor ebp, ebp
call fcn.00403aa0
mov ebx, dword [0x690f24]
add esp, 4
test ebx, ebx
jne 0x4044a0
mov ebx, dword [0x690f20]
test ebx, ebx
je 0x4044ea
lea esp, [esp]
mov al, byte [ebx + 0x18]
test al, al
jne 0x4044e3
mov eax, dword [ebx]
mov edi, str.Default
mov esi, eax
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4044e3
movsx ecx, byte [esp + ebp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.00403370
add esp, 4
push eax
push str.__s_cvn____Thresholds_Thresholds__s_cMask.dat__r_file__
call fcn.00403aa0
add esp, 0x10
cmp ebp, 3
jae 0x4044e3
inc ebp
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x4044a0
mov eax, dword [esp + 0x10]
push eax
push str._Default___Thresholds_Thresholds__skMask.dat__r_file__
call fcn.00403aa0
push str._____dup_____exch_pop_dup_type__dicttype_eq___t___begin___t_t_HalftoneType_6_def___t_tThresholds_read_pop___t_tThresholds_read_pop_256_mul_add_dup___t_t_Width_exch_def___t_t_Height_exch_def___t_tend___t_____t___pop___t_____tifelse___bind__forall__dup_userdict__SAHalftone_3__1_roll_put___Halftone_defineresource_pop
call fcn.00403aa0
push str._LX128__Halftone_findresource
call fcn.00403aa0
add esp, 0x10
jmp case.0x404446.2
mov eax, dword [0x690f24]
test eax, eax
je 0x404782
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], 0
je 0x40463a
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40462f
mov edx, dword [esp + 0x10]
mov cl, byte [ebp + 0x10]
inc edx
test cl, cl
mov dword [esp + 0x10], edx
je 0x40462f
mov ecx, dword [str..AngleScreenSpot_]
mov edx, dword [0x66b2c8]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x66b2cc]
mov dword [esp + 0x1c], edx
mov edx, dword [0x66b2d0]
mov dword [esp + 0x20], ecx
mov cx, word [0x66b2d4]
mov dword [esp + 0x24], edx
mov dl, byte [0x66b2d6]
mov word [esp + 0x28], cx
mov byte [esp + 0x2a], dl
mov esi, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045a0
lea edi, [esp + 0x18]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4045b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x18]
and ecx, 3
push 0x66aea8
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4045ee
push str.AngleScreen_Spot_Function_not_found
push 3
call fcn.004169a0
add esp, 8
push esi
push 0x100
lea ecx, [esp + 0x20]
push 1
push ecx
call ebx
add esp, 0x10
test eax, eax
je 0x404625
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00403430
push esi
push 0x100
lea eax, [esp + 0x28]
push 1
push eax
call ebx
add esp, 0x18
test eax, eax
jne 0x404604
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x404540
mov ecx, dword [esp + 0x10]
push ecx
push str._SAHalftoneInfo__d_array_def_n
call fcn.00403aa0
mov esi, dword [0x690f24]
add esp, 8
xor edi, edi
test esi, esi
je 0x404709
mov ebx, 1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4046fe
push edi
push str._SAHalftoneInfo__d
call fcn.00403aa0
push str._____HalftoneType_1
call fcn.00403aa0
fld dword [esi + 8]
add esp, 4
fstp qword [esp]
push str.__Frequency___f
call fcn.00403aa0
fld dword [esi + 4]
add esp, 4
fstp qword [esp]
push str.__Angle_______f
call fcn.00403aa0
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x4046e2
push str.__AccurateScreens_true
call fcn.00403aa0
fld dword [esi + 8]
push ecx
fstp qword [esp]
push str.__ActualFrequency___f
call fcn.00403aa0
fld dword [esi + 4]
add esp, 4
fstp qword [esp]
push str.__ActualAngle_______f
call fcn.00403aa0
add esp, 0xc
mov edx, dword [esi + 0xc]
push edx
push str.__SpotFunction_____s
call fcn.00403aa0
push str.____put
call fcn.00403aa0
add esp, 0xc
inc edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x404661
mov esi, dword [0x690f24]
test esi, esi
je 0x404736
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40472f
mov cl, byte [esi + 0x10]
test cl, cl
je 0x40472f
push eax
push str._currentdict___s_undef
call fcn.00403aa0
add esp, 8
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x404713
mov edi, dword [0x690f24]
xor esi, esi
test edi, edi
je 0x404778
push esi
push str.__AngleScreen_d_15_dict_begin_HalftoneType_5_def
call fcn.00403aa0
push esi
push str.__Default_SAHalftoneInfo__d_get_def
call fcn.00403aa0
push esi
push str.__Gray_SAHalftoneInfo__d_get_def
call fcn.00403aa0
push str._currentdict_end__Halftone_defineresource_pop
call fcn.00403aa0
mov edi, dword [edi + 0x1c]
add esp, 0x1c
inc esi
test edi, edi
jne 0x404742
push str._AngleScreen0_Halftone_findresource
jmp 0x404998
push str._AngleScreen_15_dict_begin_HalftoneType_5_def
call fcn.00403aa0
mov ebp, dword [0x690f20]
add esp, 4
test ebp, ebp
je 0x40489a
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40488f
mov cl, byte [ebp + 0x10]
test cl, cl
je 0x40488f
mov ecx, dword [str..AngleScreenSpot_]
mov edx, dword [0x66b2c8]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x66b2cc]
mov dword [esp + 0x1c], edx
mov edx, dword [0x66b2d0]
mov dword [esp + 0x20], ecx
mov cx, word [0x66b2d4]
mov dword [esp + 0x24], edx
mov dl, byte [0x66b2d6]
mov word [esp + 0x28], cx
mov byte [esp + 0x2a], dl
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404800
lea edi, [esp + 0x18]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404810
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x18]
and ecx, 3
push 0x66aea8
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40484e
push str.AngleScreen_Spot_Function_not_found
push 3
call fcn.004169a0
add esp, 8
push esi
push 0x100
lea ecx, [esp + 0x20]
push 1
push ecx
call ebx
add esp, 0x10
test eax, eax
je 0x404885
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00403430
push esi
push 0x100
lea eax, [esp + 0x28]
push 1
push eax
call ebx
add esp, 0x18
test eax, eax
jne 0x404864
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x4047a3
mov esi, dword [0x690f20]
test esi, esi
je 0x404960
jmp 0x4048b0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x404955
mov ecx, dword [esi]
push ecx
call fcn.00403370
push eax
push str.___s_cvn
call fcn.00403aa0
push str._____HalftoneType_1
call fcn.00403aa0
fld dword [esi + 8]
add esp, 8
fstp qword [esp]
push str.__Frequency___f
call fcn.00403aa0
fld dword [esi + 4]
add esp, 4
fstp qword [esp]
push str.__Angle_______f
call fcn.00403aa0
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp eax, 1
jne 0x40493a
push str.__AccurateScreens_true
call fcn.00403aa0
fld dword [esi + 8]
push ecx
fstp qword [esp]
push str.__ActualFrequency___f
call fcn.00403aa0
fld dword [esi + 4]
add esp, 4
fstp qword [esp]
push str.__ActualAngle_______f
call fcn.00403aa0
add esp, 0xc
mov edx, dword [esi + 0xc]
push edx
push str.__SpotFunction_____s
call fcn.00403aa0
push str.____def
call fcn.00403aa0
add esp, 0xc
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4048b0
mov esi, dword [0x690f20]
test esi, esi
je 0x404993
lea ebx, [ebx]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40498c
mov cl, byte [esi + 0x10]
test cl, cl
je 0x40498c
push eax
push str._currentdict___s_undef
call fcn.00403aa0
add esp, 8
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x404970
push str._currentdict_end_Halftone_defineresource_pop_AngleScreen_Halftone_findresource
call fcn.00403aa0
add esp, 4
push str.__DefaultHalftone_exch__Halftone_defineresource__sethalftone_currenthalftone_pop_r_n
call fcn.00403aa0
push str.setglobal_n
call fcn.00403aa0
add esp, 8
mov ecx, 0x690970
call fcn.0040d2c0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret