Function at 0x415d00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x200
mov ecx, dword [0x427738]
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0x424210
push 0x200
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [0x427738]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
push str.0000000000000000
push 0x424128
push 0x424124
push 0x424120
push 0x421ee0
push 0x42411c
push 0x424166
push 0x424164
push 0x4241c0
push 0x4241bc
push 0x4241b8
push 0x4241b4
push 0x4241b0
push 0x4241ac
push 0x424178
push 0x424198
push 0x4241fc
push 0x4241ec
push 0x4241c8
push 0x4241e0
push 0x42419c
push 0x424208
push 0x424214
push 0x4241dc
push 0x423fc0
push 0x4241a8
push 0x424160
lea eax, [esp + 0x7c]
push str._d_n_d_n_s_n_d_n_d_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_X_n_X_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_X_n_X_n_d_n_d_n_d_n_d_n_08lX_n_s_n
push eax
mov word [0x4211a4], 0xffff
call fcn.0041837a
add esp, 0x74
test eax, eax
je 0x4166f2
mov eax, dword [0x424160]
test eax, eax
jl 0x4166d8
cmp eax, dword [0x421400]
jge 0x4166d8
mov ecx, dword [0x4241a8]
test ecx, ecx
jl 0x4166b1
cmp ecx, dword [eax*4 + 0x421404]
jge 0x4166b1
mov edx, dword [0x427784]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [eax*4 + 0x4240c8], ecx
mov ecx, dword [eax*4 + 0x421408]
push ecx
push 0x428
push edx
mov dword [0x4240c4], eax
call edi
mov ecx, dword [0x4240c4]
mov eax, dword [ecx*4 + 0x4240c8]
mov ecx, dword [ecx*4 + 0x421470]
lea eax, [eax + eax*2]
shl eax, 5
mov edx, dword [eax + ecx]
mov eax, dword [0x427784]
push edx
push 0x429
push eax
call edi
mov ebx, dword [esp + 0x214]
push ebx
call fcn.00404280
add esp, 4
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call fcn.00404590
push ebx
call fcn.00404fc0
add esp, 8
push 0
push 0x80
push 3
push 0
push 0
push MenuHelp
push 0x423fc0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x427738], eax
jne 0x415ed5
push 0x10
push str.LOAD_FILE
push str.Load_File_Error__
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
push eax
call esi
mov ebp, dword [0x4241dc]
mov cx, word [0x424198]
mov dx, word [0x424178]
mov word [0x4211a4], cx
test ebp, ebp
mov word [0x4211a6], dx
jl 0x416691
cmp ebp, 7
jg 0x416691
mov ecx, dword [0x424214]
test ecx, ecx
jl 0x416671
cmp ecx, 2
jg 0x416671
mov edx, dword [0x42419c]
mov esi, dword [0x424208]
cmp edx, esi
jae 0x415f52
push 0x10
push str.LOAD_FILE
push str.END_ADDRESS_ERROR
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov eax, dword [0x4241e0]
cmp eax, dword [0x427760]
jb 0x415f7f
push 0x10
push str.LOAD_FILE
push str.BUFFER_START_ADDRESS_ERROR
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov dword [0x42783c], eax
mov eax, dword [0x4211c0]
mov dword [0x4240a0], ecx
mov ecx, dword [0x4241ec]
cmp ecx, eax
mov dword [0x42782c], esi
mov dword [0x42766c], edx
mov dword [0x42409c], ebp
jbe 0x415fcb
push 0x20
push str.TARGET_ZONE
push str.Device_end_out_of_range
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov esi, dword [0x4241c8]
cmp esi, ecx
jbe 0x415ff5
push 0x20
push str.TARGET_ZONE
push str.Device_start_out_of_range
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov eax, dword [0x4241fc]
mov ebp, dword [0x427760]
cmp eax, ebp
ja 0x416651
mov edx, ecx
sub ebp, eax
sub edx, esi
lea ebx, [edx + 1]
cmp ebp, ebx
jb 0x41664a
mov ebp, dword [0x4240c4]
mov ebx, dword [ebp*4 + 0x4240c8]
mov ebp, dword [ebp*4 + 0x421470]
lea ebx, [ebx + ebx*2]
shl ebx, 5
lea ebx, [ebx + ebp + 0x3c]
cmp dword [ebx], 1
jne 0x41604d
mov edx, esi
neg edx
shl edx, 0x1f
sub edx, esi
add edx, ecx
lea edx, [eax + edx*2 + 1]
jmp 0x41604f
add edx, eax
mov ebp, dword [0x427760]
mov dword [0x424218], edx
cmp edx, ebp
jbe 0x416070
push 0x20
push str.TARGET_ZONE
push str.Buffer_end_out_of_range
jmp 0x4166e4
mov dword [0x4240ac], esi
mov dword [0x4211c0], ecx
mov dword [0x4240a8], eax
mov dword [0x4211bc], edx
cmp dword [ebx], 1
jne 0x41608e
shr eax, 1
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0x421bb0
push 0x4277a0
call esi
mov ecx, dword [0x427784]
add esp, 0xc
push 0x4277a0
push 0x434
push ecx
call edi
mov edx, dword [0x4240ac]
push edx
push 0x421bb0
push 0x4277a0
call esi
mov eax, dword [0x427784]
add esp, 0xc
push 0x4277a0
push 0x432
push eax
call edi
mov ecx, dword [0x4211c0]
push ecx
push 0x421bb0
push 0x4277a0
call esi
mov edx, dword [0x427784]
add esp, 0xc
push 0x4277a0
push 0x433
push edx
call edi
mov ecx, dword [0x4240c4]
mov eax, dword [ecx*4 + 0x4240c8]
mov ecx, dword [ecx*4 + 0x421470]
lea eax, [eax + eax*2]
shl eax, 5
cmp dword [eax + ecx + 0x3c], 1
jne 0x416136
mov edx, dword [0x4211bc]
inc edx
shr edx, 1
dec edx
push edx
jmp 0x41613c
mov eax, dword [0x4211bc]
push eax
push 0x421bb0
push 0x4277a0
call esi
mov ecx, dword [0x427784]
add esp, 0xc
push 0x4277a0
push 0x435
push ecx
call edi
call fcn.00404530
call fcn.004172f0
mov edx, dword [0x424214]
mov eax, dword [0x42783c]
mov ecx, dword [0x42766c]
mov ebp, dword [esp + 0x214]
push edx
mov edx, dword [0x42782c]
push eax
mov eax, dword [0x42409c]
push ecx
push edx
push eax
push 0x423fc0
push ebp
call fcn.0040d940
add esp, 0x1c
test eax, eax
jne 0x4161c2
push 0x10
push str.LOAD_FILE
push str.Load_File_Error__
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov ecx, 6
mov esi, 0x4241ac
mov edi, 0x427720
push ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x424164]
mov dword [0x4211a8], ecx
call fcn.004181b0
add esp, 4
call fcn.00404f20
mov eax, dword [0x421ee0]
xor ebx, ebx
cmp eax, ebx
jle 0x416624
cmp eax, 8
jg 0x416624
cmp dword [0x424120], ebx
jne 0x4162c9
dec eax
cmp eax, 6
ja case.default.0x41621b
jmp dword [eax*4 + 0x416700]
mov dword [0x421ee4], 0xff
mov dword [0x421ee8], ebx
jmp 0x416376
mov dword [0x421ee4], 0xffff
mov dword [0x421ee8], ebx
jmp 0x416376
mov dword [0x421ee4], 0xffffff
mov dword [0x421ee8], ebx
jmp 0x416376
mov dword [0x421ee4], 0xffffffff
mov dword [0x421ee8], ebx
jmp 0x416376
mov dword [0x421ee4], 0xffffffff
mov dword [0x421ee8], 0xff
jmp 0x416376
mov dword [0x421ee4], 0xffffffff
mov dword [0x421ee8], 0xffff
jmp 0x416376
mov dword [0x421ee4], 0xffffffff
mov dword [0x421ee8], 0xffffff
jmp 0x416376
or eax, 0xffffffff
jmp 0x41636c
dec eax
cmp eax, 6
ja case.default.0x4162d3
jmp dword [eax*4 + 0x41671c]
mov dword [0x421ee4], 0x63
mov dword [0x421ee8], ebx
jmp 0x416376
mov dword [0x421ee4], 0x270f
mov dword [0x421ee8], ebx
jmp 0x416376
mov dword [0x421ee4], 0xf423f
mov dword [0x421ee8], ebx
jmp 0x416376
mov dword [0x421ee4], 0x5f5e0ff
mov dword [0x421ee8], ebx
jmp 0x416376
mov dword [0x421ee4], 0x5f5e0ff
mov dword [0x421ee8], 0x63
jmp 0x416376
mov dword [0x421ee4], 0x5f5e0ff
mov dword [0x421ee8], 0x270f
jmp 0x416376
mov dword [0x421ee4], 0x5f5e0ff
mov dword [0x421ee8], 0xf423f
jmp 0x416376
mov eax, 0x5f5e0ff
mov dword [0x421ee4], eax
mov dword [0x421ee8], eax
mov esi, dword [0x424128]
mov ecx, dword [0x4240ac]
cmp esi, ecx
jae 0x4163ac
push 0x10
push str.Serial_Number_Error
push str.S_N_start_address_less_than_Device_start_address
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov dword [0x42411c], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov edx, dword [0x4240c4]
mov eax, dword [edx*4 + 0x4240c8]
mov edx, dword [edx*4 + 0x421470]
lea eax, [eax + eax*2]
shl eax, 5
cmp dword [eax + edx + 0x3c], ebx
je 0x4163e8
mov eax, ecx
neg eax
shl eax, 0x1f
sub eax, ecx
mov ecx, dword [0x4240a8]
add eax, esi
lea edx, [ecx + eax*2]
mov dword [0x42412c], edx
jmp 0x4163f6
mov eax, dword [0x4240a8]
sub eax, ecx
add eax, esi
mov dword [0x42412c], eax
mov edi, str.0000000000000000
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4277a0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4277a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x416466
xor esi, esi
mov edi, 0x4277a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc edx
mov edi, 0x4277a0
mov al, byte [ecx + esi + 0x42779f]
or ecx, 0xffffffff
mov byte [esi + 0x421efb], al
xor eax, eax
dec esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x416430
cmp edx, 0x10
jge 0x41647b
mov eax, 0x421efb
mov ecx, 0x10
sub eax, edx
sub ecx, edx
mov byte [eax], 0x30
dec eax
dec ecx
jne 0x416474
mov eax, dword [0x424120]
mov ecx, dword [str.0000000000000000]
mov edx, dword [0x421ef0]
cmp eax, ebx
mov byte [0x421efc], bl
mov dword [0x4277a0], ecx
mov dword [0x4277a4], edx
mov byte [0x4277a8], bl
push 0x424134
jne 0x4164b4
push 0x421bb0
jmp 0x4164b9
push str._8ld
push 0x4277a0
call fcn.0041837a
mov eax, dword [0x421ef4]
mov ecx, dword [0x421ef8]
mov dword [0x4277a0], eax
mov eax, dword [0x424120]
add esp, 0xc
cmp eax, ebx
mov dword [0x4277a4], ecx
mov byte [0x4277a8], bl
push 0x424130
jne 0x4164f7
push 0x421bb0
jmp 0x4164fc
push str._08ld
push 0x4277a0
call fcn.0041837a
mov ecx, dword [0x424134]
mov eax, dword [0x421ee8]
add esp, 0xc
cmp ecx, eax
ja 0x4165fe
mov eax, dword [0x424130]
mov edx, dword [0x421ee4]
cmp eax, edx
ja 0x4165fe
mov edx, dword [0x424120]
push eax
cmp edx, ebx
push ecx
jne 0x416542
push str._08lX_08lX
jmp 0x416547
push str._08ld_08ld
push 0x4277a0
call fcn.0041847c
mov ebp, dword [0x421ee0]
add esp, 0x10
lea esi, [ebp + ebp]
cmp esi, ebx
jle 0x416578
mov eax, 0x4277af
lea ecx, [esi + 0x421eeb]
mov edi, esi
mov dl, byte [eax]
dec eax
mov byte [ecx], dl
dec ecx
dec edi
jne 0x41656f
xor edi, edi
cmp ebp, ebx
mov byte [esi + str.0000000000000000], bl
jle 0x4165ee
mov esi, 0x421eed
jmp 0x41658d
xor ebx, ebx
cmp dword [0x424124], ebx
jne 0x4165b8
mov al, byte [esi - 1]
push eax
call fcn.0040a420
mov cl, byte [esi]
mov ebx, eax
push ecx
shl bl, 4
call fcn.0040a420
add esp, 8
add bl, al
mov byte [edi + 0x424138], bl
jmp 0x4165e1
mov dl, byte [esi - 1]
push edx
call fcn.0040a420
mov ebx, eax
mov al, byte [esi]
push eax
shl bl, 4
call fcn.0040a420
mov ecx, dword [0x421ee0]
add esp, 8
add bl, al
sub ecx, edi
mov byte [ecx + 0x424137], bl
mov eax, dword [0x421ee0]
inc edi
add esi, 2
cmp edi, eax
jl 0x41658b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x200
ret
push 0x10
push str.Serial_Number_Error
push str.Out_of_Serial_Number_Range
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov dword [0x42411c], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
push 0x10
push str.Serial_Number_Error
push str.Input_Serial_Number_Length_Error
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov dword [0x42411c], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov ebx, dword [esp + 0x214]
push 0x20
push str.TARGET_ZONE
push str.Buffer_start_out_of_range
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
push 0x10
push str.LOAD_FILE
push str.Unused_Byte_Select_Error__
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
push 0x10
push str.LOAD_FILE
push str.File_Format_Select_Error__
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov edx, dword [esp + 0x214]
push 0x10
push str.Warnning
push str.Type_Number_Error__
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
push 0x10
push str.Warnning
push str.Mfr_Number_Error__
mov eax, dword [esp + 0x220]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret