Function at 0x4bd2da
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x132c
call fcn.0054cd40
mov dword [ebp - 0x132c], ecx
mov dword [ebp - 0x1218], 0
mov dword [ebp - 0x1108], 1
push 0x1000
push 0
lea eax, [ebp - 0x1000]
push eax
call fcn.0054bfb0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4414], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x3d8c], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4764], 8
jl 0x4bd3d8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x4764], 0x1c
jg 0x4bd3d8
lea edx, [ebp - 0x1214]
push edx
call fcn.0053534c
add esp, 4
push 0x5aca34
lea eax, [ebp - 0x1214]
push eax
call fcn.0054bed0
add esp, 8
lea ecx, [ebp - 0x1214]
push ecx
call fcn.004284fc
add esp, 4
push 0x5aca40
lea edx, [ebp - 0x1214]
push edx
call fcn.0054d3be
add esp, 8
mov dword [ebp - 0x1220], eax
cmp dword [ebp - 0x1220], 0
je 0x4bd3d8
mov eax, dword [ebp - 0x1220]
push eax
push 0x1000
push 1
lea ecx, [ebp - 0x1000]
push ecx
call fcn.0054d276
add esp, 0x10
mov dword [ebp - 0x110c], eax
mov edx, dword [ebp - 0x1220]
push edx
call fcn.0054d1f9
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4764], 0x10
je 0x4bd3fc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x4764], 0x14
je 0x4bd3fc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x4764], 0x15
jne 0x4bd44c
mov eax, dword [ebp - 0xfdf]
and eax, 0xff
and eax, 4
test eax, eax
je 0x4bd41d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4788], 1
jmp 0x4bd44c
mov edx, dword [ebp - 0xfdf]
and edx, 0xff
and edx, 8
test edx, edx
je 0x4bd43f
mov eax, dword [ebp + 8]
mov dword [eax + 0x4788], 2
jmp 0x4bd44c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4788], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2e970], 0
jne 0x4bd474
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4788], 0
jne 0x4bd474
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2f778], 0
je 0x4bdbcb
push 0
mov edx, dword [ebp + 8]
add edx, 0x5a8
push edx
lea eax, [ebp - 0x1214]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x132c]
call fcn.004c1016
lea edx, [ebp - 0x1214]
push edx
call fcn.00536ebf
add esp, 4
push 0x5aca44
lea eax, [ebp - 0x1214]
push eax
call fcn.0054d3be
add esp, 8
mov dword [ebp - 0x1224], eax
cmp dword [ebp - 0x1224], 0
jne 0x4bd4f1
mov dword [ebp - 0x1108], 0
push str.ISP_cant_be_found__
mov ecx, dword [ebp - 0x132c]
add ecx, 0x22c4
push ecx
call fcn.0054bec0
add esp, 8
jmp 0x4bd928
push 0x64
push 1
push 0x64000
call fcn.00536ece
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x4410], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4410], 0
jne 0x4bd547
push 0x5aca60
mov ecx, dword [ebp - 0x132c]
add ecx, 0x22c4
push ecx
call fcn.0054bec0
add esp, 8
mov edx, dword [ebp - 0x1224]
push edx
call fcn.0054d1f9
add esp, 4
xor eax, eax
jmp 0x4bdbd1
push 0x64000
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4410]
push ecx
call fcn.0054bfb0
add esp, 0xc
mov edx, dword [ebp - 0x1224]
push edx
push 0x63800
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4410]
push ecx
call fcn.0054d276
add esp, 0x10
mov dword [ebp - 0x1110], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1110]
mov dword [edx + 0x3d88], eax
mov ecx, dword [ebp - 0x1224]
push ecx
call fcn.0054d1f9
add esp, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x4764], 8
jl 0x4bd5e1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4764], 0x1c
jg 0x4bd5e1
push 0xa
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4410]
add edx, 0xd
push edx
mov eax, dword [ebp + 8]
add eax, 0x4448
push eax
call fcn.0054c980
add esp, 0xc
jmp 0x4bd601
push 0xa
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4410]
add edx, 0xc
push edx
mov eax, dword [ebp + 8]
add eax, 0x4448
push eax
call fcn.0054c980
add esp, 0xc
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x4452], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2f778], 0
je 0x4bd746
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4764], 4
jl 0x4bd746
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x4764], 5
jg 0x4bd746
push 1
mov edx, dword [ebp + 8]
add edx, 0x5a8
push edx
lea eax, [ebp - 0x1214]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x132c]
call fcn.004c1016
lea edx, [ebp - 0x1214]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bd746
lea eax, [ebp - 0x1214]
push eax
call fcn.004284fc
add esp, 4
push 0x5aca80
lea ecx, [ebp - 0x1214]
push ecx
call fcn.0054d3be
add esp, 8
mov dword [ebp - 0x1224], eax
cmp dword [ebp - 0x1224], 0
jne 0x4bd6ac
xor eax, eax
jmp 0x4bdbd1
push 0x64
push 1
push 0x64000
call fcn.00536ece
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x4414], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4414], 0
jne 0x4bd702
push str.ISP_Buffer_cant_be_Alloced__
mov ecx, dword [ebp - 0x132c]
add ecx, 0x22c4
push ecx
call fcn.0054bec0
add esp, 8
mov edx, dword [ebp - 0x1224]
push edx
call fcn.0054d1f9
add esp, 4
xor eax, eax
jmp 0x4bdbd1
mov eax, dword [ebp - 0x1224]
push eax
push 0x63800
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4414]
push edx
call fcn.0054d276
add esp, 0x10
mov dword [ebp - 0x1110], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1110]
mov dword [eax + 0x3d8c], ecx
mov edx, dword [ebp - 0x1224]
push edx
call fcn.0054d1f9
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2f778], 0
je 0x4bd75e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x4764], 0x14
je 0x4bd76e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x4764], 0x15
jne 0x4bd928
lea eax, [ebp - 0x1218]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x132c]
call fcn.004cdd1d
lea edx, [ebp - 0x1214]
push edx
call fcn.0053534c
add esp, 4
mov eax, dword [ebp - 0x1218]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x5b845c]
push ecx
push str.UFD_DOWNGRADEUFD__s
lea edx, [ebp - 0x1104]
push edx
call fcn.0054c45b
add esp, 0xc
lea eax, [ebp - 0x1104]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x132c]
call fcn.004cfade
mov edx, dword [ebp - 0x1218]
imul edx, edx, 0x14
mov eax, dword [edx + 0x5b845c]
push eax
push str.SM_sBOOTISP.BIN
lea ecx, [ebp - 0x1328]
push ecx
call fcn.0054c45b
add esp, 0xc
lea edx, [ebp - 0x1328]
push edx
lea eax, [ebp - 0x1104]
push eax
call fcn.0054bed0
add esp, 8
lea ecx, [ebp - 0x1104]
push ecx
lea edx, [ebp - 0x1214]
push edx
call fcn.0054bec0
add esp, 8
lea eax, [ebp - 0x1214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bd907
lea ecx, [ebp - 0x1214]
push ecx
call fcn.004284fc
add esp, 4
push 0x5acacc
lea edx, [ebp - 0x1214]
push edx
call fcn.0054d3be
add esp, 8
mov dword [ebp - 0x1224], eax
cmp dword [ebp - 0x1224], 0
jne 0x4bd86c
xor eax, eax
jmp 0x4bdbd1
push 0x64
push 1
push 0x64000
call fcn.00536ece
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4414], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x4414], 0
jne 0x4bd8c1
push str.ISP2_Buffer_cant_be_Alloced__
mov eax, dword [ebp - 0x132c]
add eax, 0x22c4
push eax
call fcn.0054bec0
add esp, 8
mov ecx, dword [ebp - 0x1224]
push ecx
call fcn.0054d1f9
add esp, 4
xor eax, eax
jmp 0x4bdbd1
mov edx, dword [ebp - 0x1224]
push edx
push 0x63800
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4414]
push ecx
call fcn.0054d276
add esp, 0x10
mov dword [ebp - 0x1110], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1110]
mov dword [edx + 0x3d8c], eax
mov ecx, dword [ebp - 0x1224]
push ecx
call fcn.0054d1f9
add esp, 4
jmp 0x4bd928
push str.SM3257ENAABOOTISP.BIN_cant_be_Found__
mov edx, dword [ebp - 0x132c]
add edx, 0x22c4
push edx
call fcn.0054bec0
add esp, 8
xor eax, eax
jmp 0x4bdbd1
push 0x104
push 0
mov eax, dword [ebp + 8]
add eax, 0x36f48
push eax
call fcn.0054bfb0
add esp, 0xc
lea ecx, [ebp - 0x1214]
push ecx
call fcn.0054c3e0
add esp, 4
mov dword [ebp - 0x121c], eax
jmp 0x4bd966
mov edx, dword [ebp - 0x121c]
sub edx, 1
mov dword [ebp - 0x121c], edx
cmp dword [ebp - 0x121c], 0
jl 0x4bd9a6
mov eax, dword [ebp - 0x121c]
movsx ecx, byte [ebp + eax - 0x1214]
cmp ecx, 0x5c
jne 0x4bd9a4
mov edx, dword [ebp - 0x121c]
lea eax, [ebp + edx - 0x1213]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x36f48
push ecx
call fcn.0054bec0
add esp, 8
jmp 0x4bd9a6
jmp 0x4bd957
mov edx, dword [ebp + 8]
add edx, 0x36f48
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
jne 0x4bd9d5
lea eax, [ebp - 0x1214]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x36f48
push ecx
call fcn.0054bec0
add esp, 8
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2b8c], 0
je 0x4bda37
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4764], 0xe
jl 0x4bda37
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x4764], 0x1c
jg 0x4bda37
lea edx, [ebp - 0x1000]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x132c]
call fcn.004c0e44
test eax, eax
jne 0x4bda37
mov dword [ebp - 0x1108], 0
push 0x5acb18
mov ecx, dword [ebp - 0x132c]
add ecx, 0x22c4
push ecx
call fcn.0054bec0
add esp, 8
mov dword [ebp - 0x1228], 1
mov dword [ebp - 0x1228], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x36f20], 0
je 0x4bda61
mov dword [ebp - 0x1228], 1
cmp dword [ebp - 0x1228], 0
jne 0x4bda8e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4764], 0xf
je 0x4bda8e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x4764], 0x12
je 0x4bda8e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x4764], 0x1a
jne 0x4bdacc
lea eax, [ebp - 0x1000]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x132c]
call fcn.004bff15
test eax, eax
jne 0x4bdacc
mov dword [ebp - 0x1108], 0
push str.Download_ISP_jump_bin_file_cant_be_found__
mov edx, dword [ebp - 0x132c]
add edx, 0x22c4
push edx
call fcn.0054bec0
add esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4764], 0x10
jne 0x4bdb4b
lea ecx, [ebp - 0x1000]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x132c]
call fcn.004c0131
test eax, eax
jne 0x4bdb4b
mov dword [ebp - 0x1108], 0
mov eax, dword [ebp + 8]
add eax, 0x29fc
push eax
call fcn.0054c3e0
add esp, 4
test eax, eax
je 0x4bdb32
mov ecx, dword [ebp + 8]
add ecx, 0x29fc
push ecx
mov edx, dword [ebp - 0x132c]
add edx, 0x22c4
push edx
call fcn.0054bec0
add esp, 8
jmp 0x4bdb4b
push str.Download_TS_bin_files_cant_be_found__
mov eax, dword [ebp - 0x132c]
add eax, 0x22c4
push eax
call fcn.0054bec0
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x4764], 0x14
jne 0x4bdbcb
lea edx, [ebp - 0x1000]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x132c]
call fcn.004c0131
test eax, eax
jne 0x4bdbcb
mov dword [ebp - 0x1108], 0
mov ecx, dword [ebp + 8]
add ecx, 0x29fc
push ecx
call fcn.0054c3e0
add esp, 4
test eax, eax
je 0x4bdbb1
mov edx, dword [ebp + 8]
add edx, 0x29fc
push edx
mov eax, dword [ebp - 0x132c]
add eax, 0x22c4
push eax
call fcn.0054bec0
add esp, 8
jmp 0x4bdbcb
push str.Download_InfoRecover_bin_files_cant_be_found__
mov ecx, dword [ebp - 0x132c]
add ecx, 0x22c4
push ecx
call fcn.0054bec0
add esp, 8
mov eax, dword [ebp - 0x1108]
mov esp, ebp
pop ebp
ret 4