Function at 0x427660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x56df7f
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x178]
mov ebx, dword [esp + 0x17c]
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edi
call fcn.0046909a
mov dword [esp + 0x16c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], edi
call fcn.0045e1b2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4276eb
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x16c], 1
call fcn.0045e1b2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42771d
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x80], eax
mov byte [esp + 0x16c], 2
call fcn.0045e1b2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x427752
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x7c], eax
mov byte [esp + 0x16c], 3
call fcn.0045e1b2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x427784
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x324c]
mov byte [esp + 0x16c], 4
call fcn.004c5300
mov ecx, dword [esp + 0x174]
dec eax
neg eax
sbb eax, eax
push ecx
lea edx, [esp + 0x48]
inc eax
push edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], 0xffffffff
call fcn.00426760
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 5
call fcn.0041a0d0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427808
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.004dc210
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x3c]
push edi
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x8c]
push ecx
push eax
mov ecx, ebx
mov byte [esp + 0x17c], 6
call edx
mov ebx, eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427860
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, edi
je 0x42788b
mov esi, dword [esi + 0x3248]
cmp esi, edi
je 0x4280bc
mov ecx, dword [esp + 0x18]
push ebx
push ecx
push str.Layer__s__ERROR:DownloadDCF___RKU_TestDeviceReady_failed_err_d
push esi
call fcn.004d2ee0
add esp, 0x10
jmp 0x4280bc
mov ecx, dword [esp + 0x78]
mov eax, 1
shl eax, cl
shl eax, 5
mov ebx, eax
shl ebx, 9
push ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], ebx
call fcn.00450c61
push ebx
mov dword [esp + 0x44], eax
call fcn.00450c61
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x3248]
add esp, 8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x4c], edi
cmp eax, edi
je 0x4278f8
mov edx, dword [esi + 0x31b0]
mov ecx, dword [esi + 0x31ac]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
push str.Layer__s__INFO:Start_to_download_demo_size_I64u
push eax
call fcn.004d2ee0
add esp, 0x14
xor ebp, ebp
cmp dword [esi + 0x31a8], edi
mov dword [esp + 0x38], ebp
jle 0x427c1a
mov dword [esp + 0x40], edi
mov eax, dword [esi + 0x31c4]
sub eax, dword [esi + 0x31c0]
sar eax, 4
cmp ebp, eax
jb 0x427926
call fcn.004945e3
mov eax, dword [esi + 0x31c0]
push 0
add eax, edi
mov eax, dword [eax + 0xc]
push 0x8020
push eax
lea ecx, [esp + 0x74]
call fcn.00469688
test eax, eax
je 0x427e28
cmp dword [esi + 0x3248], 0
je 0x427a31
mov ecx, dword [esi + 0x31c4]
sub ecx, dword [esi + 0x31c0]
sar ecx, 4
cmp ebp, ecx
jb 0x42796f
call fcn.004945e3
mov ecx, dword [esi + 0x31c4]
mov eax, dword [esi + 0x31c0]
sub ecx, dword [esi + 0x31c0]
mov edx, dword [eax + edi + 8]
mov eax, dword [eax + edi + 4]
sar ecx, 4
push edx
push eax
cmp ebp, ecx
jb 0x427997
call fcn.004945e3
mov edx, dword [esi + 0x31c0]
mov ecx, dword [esi + 0x31c4]
mov eax, dword [edi + edx]
sub ecx, edx
sar ecx, 4
push eax
cmp ebp, ecx
jb 0x4279b5
call fcn.004945e3
mov eax, dword [esi + 0x31c0]
add eax, edi
mov eax, dword [eax + 0xc]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
push eax
call fcn.00406320
lea edx, [esp + 0x64]
add esp, 4
add eax, 0x10
push edx
mov dword [ebx], eax
call fcn.0052d950
add esp, 8
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x3248]
push eax
push ecx
push str.Layer__s__INFO:Start_to_download_demo_s_offset0x_x_size_I64u
push edx
mov byte [esp + 0x188], 7
call fcn.004d2ee0
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x16c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427a31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x31c4]
sub ecx, dword [esi + 0x31c0]
sar ecx, 4
cmp ebp, ecx
jb 0x427a49
call fcn.004945e3
mov eax, dword [esi + 0x31c0]
mov edx, dword [eax + edi + 4]
mov ebx, dword [eax + edi + 8]
mov eax, dword [esi + 0x31c4]
sub eax, dword [esi + 0x31c0]
mov dword [esp + 0x24], edx
sar eax, 4
mov dword [esp + 0x28], ebx
cmp ebp, eax
jb 0x427a77
call fcn.004945e3
mov ecx, dword [esi + 0x31c0]
mov edx, dword [edi + ecx]
mov edi, dword [esp + 0x54]
mov ecx, edi
mov dword [esp + 0x14], edx
call fcn.004da840
test eax, eax
jne 0x427aa6
mov ecx, edi
call fcn.004da830
test eax, eax
je 0x427aa6
add dword [esp + 0x14], 0x2000
test ebx, ebx
ja 0x427ab5
cmp dword [esp + 0x24], 0
jbe 0x427bef
mov ebp, dword [esp + 0x58]
mov ebx, dword [esp + 0x3c]
push ebp
push 0
push ebx
call fcn.00493420
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x28], eax
jb 0x427ae1
ja 0x427adb
mov edi, dword [esp + 0x24]
cmp edi, ebp
jb 0x427ae5
mov edi, dword [esp + 0x44]
jmp 0x427af8
mov edi, dword [esp + 0x24]
mov ebp, edi
test edi, 0x1ff
jne 0x427af4
shr edi, 9
jmp 0x427af8
shr edi, 9
inc edi
push ebp
push ebx
lea ecx, [esp + 0x70]
call fcn.00468d8e
cmp eax, ebp
jne 0x427e7f
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x34]
push eax
call fcn.004dc210
mov ebx, dword [esp + 0x64]
mov eax, dword [eax]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
push ebx
mov ebx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x1c]
push edi
push ebx
push eax
mov eax, dword [edx + 0x44]
mov byte [esp + 0x180], 8
call eax
mov ebx, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427b69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x427eb3
mov ecx, dword [esp + 0x30]
xor eax, eax
add dword [esp + 0x1c], ebp
adc dword [esp + 0x20], eax
add dword [esp + 0x14], edi
add ecx, ebp
sub dword [esp + 0x24], ebp
mov dword [esp + 0x30], ecx
sbb dword [esp + 0x28], eax
cmp ecx, 0x100000
jb 0x427bd7
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x31b0]
push edx
mov edx, dword [esi + 0x31ac]
push eax
mov eax, dword [esp + 0x180]
push ecx
push edx
push 9
push eax
mov ecx, esi
call fcn.00426a20
sub dword [esp + 0x30], 0x100000
mov dword [esp + 0x4c], 1
cmp dword [esp + 0x28], 0
ja 0x427ab5
jb 0x427bef
cmp dword [esp + 0x24], 0
ja 0x427ab5
lea ecx, [esp + 0x68]
call fcn.00469034
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
inc ebp
add edi, 0x10
cmp ebp, dword [esi + 0x31a8]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], edi
jl 0x42790e
xor edi, edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x31b0]
push 2
push ecx
mov ecx, dword [esi + 0x31ac]
push edx
mov edx, dword [esp + 0x180]
push eax
push ecx
push 9
push edx
mov ecx, esi
call fcn.00426a20
cmp dword [esi + 0x31a4], edi
je 0x4280b4
cmp dword [esi + 0x3218], edi
jne 0x4280b4
cmp dword [esi + 0x31a8], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x38], edi
jle 0x428089
mov dword [esp + 0x40], edi
jmp 0x427c90
mov eax, dword [esi + 0x31c4]
sub eax, dword [esi + 0x31c0]
mov ebp, dword [esp + 0x38]
sar eax, 4
cmp ebp, eax
jb 0x427cac
call fcn.004945e3
mov eax, dword [esi + 0x31c0]
mov ebx, dword [esp + 0x40]
push 0
add eax, ebx
mov eax, dword [eax + 0xc]
push 0x8020
push eax
lea ecx, [esp + 0x74]
call fcn.00469688
test eax, eax
je 0x4281cd
cmp dword [esi + 0x3248], 0
je 0x427d72
mov ecx, dword [esi + 0x31c4]
sub ecx, dword [esi + 0x31c0]
sar ecx, 4
cmp ebp, ecx
jb 0x427cf9
call fcn.004945e3
mov eax, dword [esi + 0x31c0]
add eax, ebx
mov eax, dword [eax + 0xc]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00406320
lea edx, [esp + 0x3c]
add esp, 4
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.0052d950
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x3248]
push eax
push ecx
push str.Layer__s__INFO:Start_to_check_demo_s
push edx
mov byte [esp + 0x184], 9
call fcn.004d2ee0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x16c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427d72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x31c4]
sub ecx, dword [esi + 0x31c0]
sar ecx, 4
cmp ebp, ecx
jb 0x427d8a
call fcn.004945e3
mov eax, dword [esi + 0x31c0]
mov edx, dword [esi + 0x31c4]
mov ebp, dword [eax + ebx + 4]
mov edi, dword [eax + ebx + 8]
sub edx, eax
sar edx, 4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
cmp dword [esp + 0x38], edx
jb 0x427db6
call fcn.004945e3
mov eax, dword [esi + 0x31c0]
mov ecx, dword [ebx + eax]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
mov ecx, ebx
call fcn.004da840
test eax, eax
jne 0x427de5
mov ecx, ebx
call fcn.004da830
test eax, eax
je 0x427de5
add dword [esp + 0x14], 0x2000
test edi, edi
ja 0x427df1
test ebp, ebp
jbe 0x428066
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x3c]
push edi
push 0
push ebx
call fcn.00493420
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x28], eax
jb 0x427ee4
ja 0x427e1f
mov ebp, dword [esp + 0x24]
cmp ebp, edi
jb 0x427ee8
mov ebp, dword [esp + 0x44]
jmp 0x427efb
cmp dword [esi + 0x3248], 0
je 0x4280bc
mov ecx, dword [esi + 0x31c4]
sub ecx, dword [esi + 0x31c0]
sar ecx, 4
cmp ebp, ecx
jb 0x427e4d
call fcn.004945e3
shl ebp, 4
add ebp, dword [esi + 0x31c0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x3248]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push str.Layer__s__ERROR:DownloadDCF___open__s_failed_err_d
push ecx
call fcn.004d2ee0
add esp, 0x14
jmp 0x4280bc
cmp dword [esi + 0x3248], 0
je 0x4280bc
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0x3248]
push edx
push str.Layer__s__ERROR:DownloadDCF___Read_data_from_file_failed_in_write_file_err_d_read_d_ret_d
push eax
call fcn.004d2ee0
add esp, 0x18
jmp 0x4280bc
mov esi, dword [esi + 0x3248]
test esi, esi
je 0x4280bc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push ecx
push edx
push eax
push str.Layer__s__ERROR:DownloadDCF___RKU_WriteLBA_failed_Written__d__RetCode__d_
push esi
call fcn.004d2ee0
add esp, 0x18
jmp 0x4280bc
mov ebp, dword [esp + 0x24]
mov edi, ebp
test ebp, 0x1ff
jne 0x427ef7
shr ebp, 9
jmp 0x427efb
shr ebp, 9
inc ebp
push edi
push ebx
lea ecx, [esp + 0x70]
call fcn.00468d8e
cmp eax, edi
jne 0x428228
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x50]
push edx
call fcn.004dc210
mov ebx, dword [esp + 0x64]
mov eax, dword [eax]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
push ebx
mov ebx, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push ebx
push eax
mov eax, dword [edx + 0x1c]
mov byte [esp + 0x180], 0xa
call eax
mov ebx, eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427f6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x428448
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
xor eax, eax
add dword [esp + 0x1c], edi
adc dword [esp + 0x20], eax
add dword [esp + 0x14], ebp
sub dword [esp + 0x24], edi
mov ebp, edi
sbb dword [esp + 0x28], eax
cmp edi, 4
jb 0x427fb4
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x427fb8
sub ebp, 4
add ecx, 4
add edx, 4
cmp ebp, 4
jae 0x427fa0
test ebp, ebp
je 0x427fff
movzx eax, byte [edx]
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x427ff3
cmp ebp, 1
jbe 0x427fff
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x427ff3
cmp ebp, 2
jbe 0x427fff
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x427ff3
cmp ebp, 3
jbe 0x427fff
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jne 0x42825c
mov eax, dword [esp + 0x30]
add eax, edi
mov dword [esp + 0x30], eax
cmp eax, 0x100000
jb 0x42804e
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esi + 0x31b0]
push eax
mov eax, dword [esi + 0x31ac]
push ecx
mov ecx, dword [esp + 0x180]
push edx
push eax
push 0xa
push ecx
mov ecx, esi
call fcn.00426a20
sub dword [esp + 0x30], 0x100000
mov dword [esp + 0x4c], 1
cmp dword [esp + 0x28], 0
ja 0x427df1
jb 0x428066
cmp dword [esp + 0x24], 0
ja 0x427df1
lea ecx, [esp + 0x68]
call fcn.00469034
mov eax, dword [esp + 0x38]
add dword [esp + 0x40], 0x10
inc eax
cmp eax, dword [esi + 0x31a8]
mov dword [esp + 0x38], eax
jl 0x427c90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x31b0]
push 2
push eax
mov eax, dword [esi + 0x31ac]
push ecx
mov ecx, dword [esp + 0x180]
push edx
push eax
push 0xa
push ecx
mov ecx, esi
call fcn.00426a20
mov dword [esp + 0x60], 1
or esi, 0xffffffff
cmp dword [esp + 0x6c], esi
je 0x4280ce
lea ecx, [esp + 0x68]
call fcn.00469034
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4280df
push eax
call fcn.00450c6c
add esp, 4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4280f0
push eax
call fcn.00450c6c
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 3
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x428117
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 2
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42813e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 1
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428168
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42818f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x16c], esi
call fcn.0046928f
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.00493eee
add esp, 0x15c
ret 0xc
cmp dword [esi + 0x3248], 0
je 0x4280bc
mov edx, dword [esi + 0x31c4]
sub edx, dword [esi + 0x31c0]
mov edi, dword [esp + 0x38]
sar edx, 4
cmp edi, edx
jb 0x4281f6
call fcn.004945e3
shl edi, 4
add edi, dword [esi + 0x31c0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x3248]
push eax
mov eax, dword [edi + 0xc]
push eax
push ecx
push str.Layer__s__ERROR:DownloadDCF___open__s_failed_err_d
push edx
call fcn.004d2ee0
add esp, 0x14
jmp 0x4280bc
cmp dword [esi + 0x3248], 0
je 0x4280bc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x3248]
push eax
mov eax, dword [esp + 0x24]
push eax
push str.Layer__s__ERROR:DownloadDCF___Read_data_from_file_failed_in_check_file_err_d_read_d_ret_d
push ecx
call fcn.004d2ee0
add esp, 0x18
jmp 0x4280bc
mov ecx, dword [esi + 0x3248]
test ecx, ecx
je 0x42828a
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
shrd edx, eax, 0xa
shr eax, 0xa
push eax
push edx
mov edx, dword [esp + 0x20]
push edx
push str.Layer__s__ERROR:DownloadDCF___memcmp_failed_Checked__dK_
push ecx
call fcn.004d2ee0
add esp, 0x14
cmp dword [esi + 0x3248], 0
je 0x4280bc
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x94]
movzx edx, word [esp + 0x92]
movzx eax, word [esp + 0x90]
push ecx
push edx
push eax
lea ecx, [esp + 0xa4]
push str._02d__02d__02d
push ecx
call fcn.00495368
mov ecx, dword [esi + 0x3248]
add esp, 0x14
lea edx, [esp + 0x34]
push edx
call fcn.004d28c0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x170], 0xb
call fcn.0041a0d0
mov eax, dword [esp + 0x34]
mov bl, 4
add eax, 0xfffffff0
mov byte [esp + 0x16c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428320
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x98]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428330
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x34]
call fcn.004076c0
push 8
push str.file.bin
lea ecx, [esp + 0x34]
call fcn.004076c0
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
push ebp
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov edi, esp
push eax
call fcn.00406320
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x3248]
add esp, 4
call fcn.004d2780
mov ecx, dword [esi + 0x3248]
lea eax, [esp + 0x34]
push eax
call fcn.004d28c0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x170], 0xc
call fcn.0041a0d0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x16c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4283db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x98]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4283e5
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x34]
call fcn.004076c0
push 9
push str.flash.bin
lea ecx, [esp + 0x34]
call fcn.004076c0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
push ebp
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x5c], esp
mov edi, esp
push eax
call fcn.00406320
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x3248]
add esp, 4
call fcn.004d2780
jmp 0x4280bc
mov esi, dword [esi + 0x3248]
test esi, esi
je 0x4280bc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push eax
push ecx
push edx
push str.Layer__s__ERROR:DownloadDCF___RKU_ReadLBA_failed_Read__d__RetCode__d_
push esi
call fcn.004d2ee0
add esp, 0x18
jmp 0x4280bc