Function at 0x413920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x200
mov ecx, dword [0x422f78]
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0x41fa4c
push 0x200
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [0x422f78]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
push str.0000000000000000
push 0x41f918
push 0x41f914
push 0x41f910
push 0x41dd84
push 0x41f90c
push 0x41f9fc
push 0x41f9f8
push 0x41f9f4
push 0x41f9f0
push 0x41f9ec
push 0x41f9e8
push 0x41f9e4
push 0x41f9e0
push 0x41f9dc
push 0x41f9d8
push 0x41f9d4
push 0x41f9d0
push 0x41f9cc
push 0x41f9c8
push 0x41f9c4
push 0x41f9c0
push 0x41f9bc
push 0x41f9b8
push 0x41f9b4
push 0x41f9b0
push 0x41f9ac
push 0x41f9a8
push 0x41f9a4
push 0x41f9a0
push 0x41f99c
push 0x41f998
push 0x41f994
push 0x41f990
push 0x41f98c
push 0x41f988
push 0x41f954
push 0x41f974
push 0x41fa38
push 0x41fa28
push 0x41fa04
push 0x41fa1c
push 0x41f978
push 0x41fa44
push 0x41fa50
push 0x41fa18
push 0x41f7c8
push 0x41f984
push 0x41f944
lea eax, [esp + 0xd4]
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_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_lX_n_d_n_1X_n_d_n_d_n_08lX_n_s_n
push eax
mov word [0x41d1a0], 0xffff
call fcn.00415e0a
add esp, 0xcc
test eax, eax
je 0x4143bb
mov eax, dword [0x41f944]
test eax, eax
jl 0x4143a1
cmp eax, dword [0x41d468]
jge 0x4143a1
mov ecx, dword [0x41f984]
test ecx, ecx
jl 0x41437a
cmp ecx, dword [eax*4 + 0x41d46c]
jge 0x41437a
mov edx, dword [0x422ff8]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [eax*4 + 0x41f8cc], ecx
mov ecx, dword [eax*4 + 0x41d474]
push ecx
push 0x428
push edx
mov dword [0x41f8c8], eax
call edi
mov ecx, dword [0x41f8c8]
mov eax, dword [ecx*4 + 0x41f8cc]
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [ecx*4 + 0x41d61c]
mov ecx, dword [eax + edx*4]
mov edx, dword [0x422ff8]
push ecx
push 0x429
push edx
call edi
mov ebx, dword [esp + 0x214]
push ebx
call fcn.004041c0
add esp, 4
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call fcn.004044b0
push ebx
call fcn.00404ee0
add esp, 8
push 0
push 0x80
push 3
push 0
push 0
push MenuHelp
push 0x41f7c8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x422f78], eax
jne 0x413b6b
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 [0x41fa18]
mov ax, word [0x41f974]
mov cx, word [0x41f954]
mov word [0x41d1a0], ax
test ebp, ebp
mov word [0x41d1a2], cx
jl 0x41435a
cmp ebp, 7
jg 0x41435a
mov ecx, dword [0x41fa50]
test ecx, ecx
jl 0x41433a
cmp ecx, 2
jg 0x41433a
mov edx, dword [0x41f978]
mov esi, dword [0x41fa44]
cmp edx, esi
jae 0x413be6
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 [0x41fa1c]
cmp eax, dword [0x422fd4]
jb 0x413c13
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 [0x4230bc], eax
mov eax, dword [0x41d1a8]
mov dword [0x41f8a8], ecx
mov ecx, dword [0x41fa28]
cmp ecx, eax
mov dword [0x4230ac], esi
mov dword [0x422ea0], edx
mov dword [0x41f8a4], ebp
jbe 0x413c5f
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 [0x41fa04]
cmp esi, ecx
jbe 0x413c89
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 [0x41fa38]
mov ebp, dword [0x422fd4]
cmp eax, ebp
ja 0x41431a
mov edx, ecx
sub ebp, eax
sub edx, esi
lea ebx, [edx + 1]
cmp ebp, ebx
jb 0x414313
mov ebx, dword [0x41f8c8]
mov ebx, dword [ebx*4 + 0x41f8cc]
mov ebp, ebx
shl ebp, 4
add ebp, ebx
mov ebx, dword [0x41f8c8]
mov ebx, dword [ebx*4 + 0x41d61c]
lea ebx, [ebx + ebp*4 + 0x2c]
cmp dword [ebx], 1
jne 0x413ce8
mov edx, esi
neg edx
shl edx, 0x1f
sub edx, esi
add edx, ecx
lea edx, [eax + edx*2 + 1]
jmp 0x413cea
add edx, eax
mov ebp, dword [0x422fd4]
mov dword [0x41fa54], edx
cmp edx, ebp
jbe 0x413d21
mov eax, dword [esp + 0x214]
push 0x20
push str.TARGET_ZONE
push str.Buffer_end_out_of_range
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov dword [0x41f8b4], esi
mov dword [0x41d1a8], ecx
mov dword [0x41f8b0], eax
mov dword [0x41d1a4], edx
cmp dword [ebx], 1
jne 0x413d3f
shr eax, 1
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0x41da54
push 0x423020
call esi
mov ecx, dword [0x422ff8]
add esp, 0xc
push 0x423020
push 0x434
push ecx
call edi
mov edx, dword [0x41f8b4]
push edx
push 0x41da54
push 0x423020
call esi
mov eax, dword [0x422ff8]
add esp, 0xc
push 0x423020
push 0x432
push eax
call edi
mov ecx, dword [0x41d1a8]
push ecx
push 0x41da54
push 0x423020
call esi
mov edx, dword [0x422ff8]
add esp, 0xc
push 0x423020
push 0x433
push edx
call edi
mov ecx, dword [0x41f8c8]
mov eax, dword [ecx*4 + 0x41f8cc]
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [ecx*4 + 0x41d61c]
cmp dword [eax + edx*4 + 0x2c], 1
jne 0x413de8
mov ecx, dword [0x41d1a4]
inc ecx
shr ecx, 1
dec ecx
push ecx
jmp 0x413def
mov edx, dword [0x41d1a4]
push edx
push 0x41da54
push 0x423020
call esi
mov eax, dword [0x422ff8]
add esp, 0xc
push 0x423020
push 0x435
push eax
call edi
call fcn.00404450
call fcn.00415010
mov ecx, dword [0x41fa50]
mov edx, dword [0x4230bc]
mov eax, dword [0x422ea0]
mov ebp, dword [esp + 0x214]
push ecx
mov ecx, dword [0x4230ac]
push edx
mov edx, dword [0x41f8a4]
push eax
push ecx
push edx
push 0x41f7c8
push ebp
call fcn.0040b670
add esp, 0x1c
test eax, eax
jne 0x413e75
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, 0x41f9e8
mov edi, 0x422f80
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov esi, 0x41f9d0
mov edi, 0x422fa0
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov esi, 0x41f9b8
mov edi, 0x422e80
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov esi, 0x41f9a0
mov edi, 0x4230e0
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov esi, 0x41f988
mov edi, 0x422f60
rep movsd dword es:[edi], dword [esi]
call fcn.00404e40
mov eax, dword [0x41dd84]
xor ebx, ebx
cmp eax, ebx
jle 0x4142ed
cmp eax, 8
jg 0x4142ed
mov ebp, dword [0x41f910]
cmp ebp, ebx
jne 0x413fad
dec eax
cmp eax, 6
ja case.default.0x413eff
jmp dword [eax*4 + 0x4143c8]
mov dword [0x41dd88], 0xff
mov dword [0x41dd8c], ebx
jmp 0x41405a
mov dword [0x41dd88], 0xffff
mov dword [0x41dd8c], ebx
jmp 0x41405a
mov dword [0x41dd88], 0xffffff
mov dword [0x41dd8c], ebx
jmp 0x41405a
mov dword [0x41dd88], 0xffffffff
mov dword [0x41dd8c], ebx
jmp 0x41405a
mov dword [0x41dd88], 0xffffffff
mov dword [0x41dd8c], 0xff
jmp 0x41405a
mov dword [0x41dd88], 0xffffffff
mov dword [0x41dd8c], 0xffff
jmp 0x41405a
mov dword [0x41dd88], 0xffffffff
mov dword [0x41dd8c], 0xffffff
jmp 0x41405a
or eax, 0xffffffff
jmp 0x414050
dec eax
cmp eax, 6
ja case.default.0x413fb7
jmp dword [eax*4 + 0x4143e4]
mov dword [0x41dd88], 0x63
mov dword [0x41dd8c], ebx
jmp 0x41405a
mov dword [0x41dd88], 0x270f
mov dword [0x41dd8c], ebx
jmp 0x41405a
mov dword [0x41dd88], 0xf423f
mov dword [0x41dd8c], ebx
jmp 0x41405a
mov dword [0x41dd88], 0x5f5e0ff
mov dword [0x41dd8c], ebx
jmp 0x41405a
mov dword [0x41dd88], 0x5f5e0ff
mov dword [0x41dd8c], 0x63
jmp 0x41405a
mov dword [0x41dd88], 0x5f5e0ff
mov dword [0x41dd8c], 0x270f
jmp 0x41405a
mov dword [0x41dd88], 0x5f5e0ff
mov dword [0x41dd8c], 0xf423f
jmp 0x41405a
mov eax, 0x5f5e0ff
mov dword [0x41dd88], eax
mov dword [0x41dd8c], eax
mov esi, dword [0x41f918]
mov ecx, dword [0x41f8b4]
cmp esi, ecx
jae 0x414097
mov eax, dword [esp + 0x214]
push 0x10
push str.Serial_Number_Error
push str.S_N_start_address_less_than_Device_start_address
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov dword [0x41f90c], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov edx, dword [0x41f8c8]
mov eax, dword [edx*4 + 0x41f8cc]
mov edx, dword [edx*4 + 0x41d61c]
mov edi, eax
shl edi, 4
add edi, eax
cmp dword [edx + edi*4 + 0x2c], ebx
je 0x4140d4
mov eax, ecx
neg eax
shl eax, 0x1f
sub eax, ecx
mov ecx, dword [0x41f8b0]
add eax, esi
lea edx, [ecx + eax*2]
mov dword [0x41f91c], edx
jmp 0x4140e2
mov eax, dword [0x41f8b0]
sub eax, ecx
add eax, esi
mov dword [0x41f91c], eax
mov edi, 0x423020
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41412d
xor esi, esi
mov edi, 0x423020
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc edx
mov edi, 0x423020
mov cl, byte [ecx + esi + 0x42301f]
mov byte [esi + 0x41dd9f], cl
or ecx, 0xffffffff
dec esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x4140f9
cmp edx, 0x10
jge 0x414142
mov eax, 0x41dd9f
mov ecx, 0x10
sub eax, edx
sub ecx, edx
mov byte [eax], 0x30
dec eax
dec ecx
jne 0x41413b
mov edx, dword [str.0000000000000000]
mov eax, dword [0x41dd94]
cmp ebp, ebx
mov byte [0x41dda0], bl
mov dword [0x423020], edx
mov dword [0x423024], eax
mov byte [0x423028], bl
push 0x41f924
jne 0x414174
push 0x41da54
jmp 0x414179
push str._8ld
push 0x423020
call fcn.00415e0a
mov eax, dword [0x41f910]
mov ecx, dword [0x41dd98]
mov edx, dword [0x41dd9c]
add esp, 0xc
cmp eax, ebx
mov dword [0x423020], ecx
mov dword [0x423024], edx
mov byte [0x423028], bl
push 0x41f920
jne 0x4141b9
push 0x41da54
jmp 0x4141be
push str._08ld
push 0x423020
call fcn.00415e0a
mov ecx, dword [0x41f924]
mov eax, dword [0x41dd8c]
add esp, 0xc
cmp ecx, eax
ja 0x4142c0
mov eax, dword [0x41f920]
mov edx, dword [0x41dd88]
cmp eax, edx
ja 0x4142c0
mov edx, dword [0x41f910]
push eax
cmp edx, ebx
push ecx
jne 0x414204
push str._08lX_08lX
jmp 0x414209
push str._08ld_08ld
push 0x423020
call fcn.00415f84
mov ebp, dword [0x41dd84]
add esp, 0x10
lea esi, [ebp + ebp]
cmp esi, ebx
jle 0x41423a
mov eax, 0x42302f
lea ecx, [esi + 0x41dd8f]
mov edi, esi
mov dl, byte [eax]
dec eax
mov byte [ecx], dl
dec ecx
dec edi
jne 0x414231
xor edi, edi
cmp ebp, ebx
mov byte [esi + str.0000000000000000], bl
jle 0x4142b0
mov esi, 0x41dd91
jmp 0x41424f
xor ebx, ebx
cmp dword [0x41f914], ebx
jne 0x41427a
mov al, byte [esi - 1]
push eax
call fcn.004085e0
mov cl, byte [esi]
mov ebx, eax
push ecx
shl bl, 4
call fcn.004085e0
add esp, 8
add bl, al
mov byte [edi + 0x41f928], bl
jmp 0x4142a3
mov dl, byte [esi - 1]
push edx
call fcn.004085e0
mov ebx, eax
mov al, byte [esi]
push eax
shl bl, 4
call fcn.004085e0
mov ecx, dword [0x41dd84]
add esp, 8
add bl, al
sub ecx, edi
mov byte [ecx + 0x41f927], bl
mov eax, dword [0x41dd84]
inc edi
add esi, 2
cmp edi, eax
jl 0x41424d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x200
ret
mov edx, dword [esp + 0x214]
push 0x10
push str.Serial_Number_Error
push str.Out_of_Serial_Number_Range
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov dword [0x41f90c], 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 [0x41f90c], 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 eax, dword [esp + 0x214]
push 0x10
push str.Warnning
push str.Type_Number_Error__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
mov ecx, dword [esp + 0x214]
push 0x10
push str.Warnning
push str.Mfr_Number_Error__
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret