Function at 0x419f40
Capabilities:
Get file size

Disassembly:
sub esp, 0x14
mov eax, dword [0x439994]
push ebx
mov ebx, 1
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x10], str.Binary
mov dword [esp + 0x14], str.Intel_HEX
mov dword [esp + 0x18], str.Dont_care
mov dword [esp + 0x1c], str.0x00
mov dword [esp + 0x20], str.0xFF
jne 0x419fb5
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x419fb5
push ebx
call fcn.00424180
add esp, 4
test eax, eax
jne 0x419fb5
call fcn.00424330
push 0x30
push 0x432594
push str.Error_Identification_on_hardware__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov edi, dword [esp + 0x2c]
push 0
push 0x80
push 3
push 0
push 0
push MenuHelp
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [0x44ccf4], ebp
jne 0x41a0a7
mov esi, str.NONE
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x41a00e
test dl, dl
je 0x41a00a
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x41a00e
add ecx, 2
add esi, 2
test dl, dl
jne 0x419fea
xor ecx, ecx
jmp 0x41a013
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x41a0a7
cmp dword [0x439994], ebx
jne 0x41a030
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x41a030
call fcn.00424330
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push str._s_open_error_
push 0x44d540
call esi
mov ecx, dword [esp + 0x34]
add esp, 0xc
push 0x10
push 0
push 0x44d540
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x44d4f0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x44d4fc]
mov ecx, dword [0x44d4f8]
xor eax, eax
and edx, 0xffff
mov ax, word [0x44d4fa]
push edi
push edx
and ecx, 0xffff
push eax
push ecx
push str.__02d:_02d:_02d__t_s_open_error__r_n
push 0x44d540
call esi
add esp, 0x18
call fcn.0040ac50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [0x44d520], eax
jne 0x41a154
cmp dword [0x439994], ebx
jne 0x41a0d2
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x41a0d2
call fcn.00424330
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push str._s_open_error
push 0x44d540
call esi
mov edx, dword [esp + 0x34]
add esp, 0xc
push 0x10
push 0
push 0x44d540
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x44ccf4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44d4f0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x44d4fc]
mov eax, dword [0x44d4f8]
xor edx, edx
and ecx, 0xffff
mov dx, word [0x44d4fa]
push edi
push ecx
and eax, 0xffff
push edx
push eax
push str.__02d:_02d:_02d__t_s_open_error__r_n
push 0x44d540
call esi
add esp, 0x18
call fcn.0040ac50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
mov dword [0x44c0f8], eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x44d530], eax
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x41a1b6
cmp eax, 2
jne 0x41a1f3
or al, 0xff
mov ecx, dword [0x439994]
mov byte [0x43a20c], al
test ecx, ecx
jne 0x41a1e0
mov ecx, dword [0x44d51c]
push ecx
call edi
test eax, eax
mov dword [0x44ccb4], eax
je 0x41a1f3
mov edx, dword [0x44d49c]
xor ecx, ecx
test edx, edx
jbe 0x41a1d2
jmp 0x41a1bf
xor al, al
jmp 0x41a187
mov eax, dword [0x44ccb4]
mov dl, byte [0x43a20c]
mov byte [eax + ecx], dl
mov eax, dword [0x44d49c]
inc ecx
cmp ecx, eax
jb 0x41a1ba
mov eax, dword [0x44d51c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x41a1f3
mov ecx, dword [0x44d49c]
push eax
dec ecx
push ecx
push 0
call fcn.00409900
add esp, 0xc
mov esi, dword [esp + 0x28]
mov dword [0x44d478], 0
push esi
call fcn.00421660
mov edx, dword [0x44d51c]
add esp, 4
push edx
call edi
test eax, eax
mov dword [0x44ccb4], eax
jne 0x41a254
cmp dword [0x439994], ebx
jne 0x41a231
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x41a231
call fcn.00424330
mov eax, dword [0x44ccf4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x44d530]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push esi
mov dword [0x43a300], 0
call fcn.00421a90
mov eax, dword [esp + 0x34]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 4
cmp eax, 0xa
ja case.default.0x41a27a
jmp dword [eax*4 + 0x41a5ac]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push esi
call fcn.0041a5e0
jmp 0x41a358
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push esi
call fcn.0041a780
jmp 0x41a2c7
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push esi
call fcn.0041b160
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne case.default.0x41a27a
push 0x10
push eax
push str.Poor_hex_file__
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x44d4f0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x44d4fc]
mov ecx, dword [0x44d4f8]
xor eax, eax
and edx, 0xffff
mov ax, word [0x44d4fa]
push edx
and ecx, 0xffff
push eax
push ecx
push str.__02d:_02d:_02d__tPoor_hex_file__r_n
push 0x44d540
call ebp
add esp, 0x14
call fcn.0040ac50
jmp 0x41a468
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push esi
call fcn.0041b4e0
jmp 0x41a358
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push esi
call fcn.00421c50
add esp, 0x10
mov dword [esp + 0x34], eax
cmp dword [esp + 0x34], ebx
jne 0x41a468
mov eax, dword [0x43a2fc]
shr eax, 4
and eax, 0xf
dec eax
je 0x41a437
dec eax
je 0x41a3f6
dec eax
jne 0x41a468
mov edx, dword [0x42e598]
mov eax, dword [0x44d894]
inc edx
cmp eax, edx
jae 0x41a468
mov ecx, dword [0x44ccb4]
add eax, 4
mov bl, byte [ecx + eax - 3]
mov dl, byte [ecx + eax - 4]
mov byte [esp + 0x38], bl
mov bl, byte [ecx + eax - 2]
mov byte [esp + 0x3c], bl
mov bl, byte [ecx + eax - 1]
mov byte [ecx + eax - 4], bl
mov ecx, dword [0x44ccb4]
mov bl, byte [esp + 0x3c]
mov byte [ecx + eax - 3], bl
mov ecx, dword [0x44ccb4]
mov bl, byte [esp + 0x38]
mov byte [ecx + eax - 2], bl
mov ecx, dword [0x44ccb4]
mov byte [ecx + eax - 1], dl
mov edx, dword [0x42e598]
inc edx
cmp eax, edx
jb 0x41a399
mov ebx, 1
jmp 0x41a468
mov ecx, dword [0x42e598]
mov eax, dword [0x44d894]
inc ecx
cmp eax, ecx
jae 0x41a468
mov ecx, dword [0x44ccb4]
add eax, 2
mov bl, byte [ecx + eax - 1]
mov dl, byte [ecx + eax - 2]
mov byte [ecx + eax - 2], bl
mov ecx, dword [0x44ccb4]
mov byte [ecx + eax - 1], dl
mov edx, dword [0x42e598]
inc edx
cmp eax, edx
jb 0x41a406
mov ebx, 1
jmp 0x41a468
mov eax, dword [0x42e598]
mov ecx, dword [0x44d894]
inc eax
cmp ecx, eax
jae 0x41a468
mov edi, dword [0x44ccb4]
mov al, byte [edi + ecx]
mov dl, al
shr dl, 4
shl al, 4
or dl, al
mov byte [edi + ecx], dl
mov eax, dword [0x42e598]
inc ecx
inc eax
cmp ecx, eax
jb 0x41a447
push esi
call fcn.00421b30
mov ecx, dword [0x44d51c]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [0x43a300], ebx
jne 0x41a4d8
push 0x10
push 0
push str.Some_BIN_code_out_of_range__
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x44d4f0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x44d4fc]
mov ecx, dword [0x44d4f8]
xor eax, eax
and edx, 0xffff
mov ax, word [0x44d4fa]
push edx
and ecx, 0xffff
push eax
push ecx
push str.__02d:_02d:_02d__tSome_BIN_code_out_of_range___r_n
push 0x44d540
call ebp
add esp, 0x14
call fcn.0040ac50
push 0x44d4f0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x439b9c]
mov ecx, dword [0x439b98]
mov eax, dword [esp + edx*4 + 0x18]
mov edx, dword [esp + ecx*4 + 0x10]
mov ecx, dword [0x44c26c]
push eax
mov eax, dword [0x44d894]
push edx
mov edx, dword [0x44d87c]
push eax
mov eax, dword [0x44d4fc]
push ecx
push edx
mov edx, dword [0x44d4f8]
xor ecx, ecx
and eax, 0xffff
mov cx, word [0x44d4fa]
push 0x42e350
push eax
and edx, 0xffff
push ecx
push edx
push str.__02d:_02d:_02d__tFile_Name___s_tFile_Start___08X_tFile_End___08X_tBuffer_Start___08X_r_n_t_tFile_Format___s_t_tUnused_Byte___s_r_n
push 0x44d540
call ebp
add esp, 0x2c
call fcn.0040ac50
call fcn.00409e30
mov eax, dword [0x439994]
mov dword [0x42e034], 0
cmp eax, ebx
jne 0x41a56d
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x41a56d
call fcn.00424330
mov eax, dword [0x44d520]
push esi
mov dword [0x44d478], eax
call fcn.00421660
add esp, 4
call fcn.00421740
mov ecx, dword [0x44ccf4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x44d530]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret