Function at 0x52aab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6af064
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x7e2670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.dlspboot
mov eax, dword [ebp + 8]
push eax
call fcn.006687b0
add esp, 8
test eax, eax
setne cl
mov byte [ebp - 0x11], cl
push str.dlapboot
mov edx, dword [ebp + 8]
push edx
call fcn.006687b0
add esp, 8
test eax, eax
setne al
mov byte [ebp - 0x12], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x52ab1e
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x52b135
push str.promptdlboot_r_n
call fcn.0066610b
add esp, 4
push str.dlboot0___r_n
call fcn.0066610b
add esp, 4
cmp dword [0x7c39ec], 0x24
jne 0x52ac18
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x52ab55
call fcn.00529d10
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x52abac
cmp dword [0x7c3a5c], 0
je 0x52abac
call fcn.006684ac
mov edx, dword [0x7c3a5c]
push edx
push 0x75c080
call fcn.0066610b
add esp, 8
call fcn.006684ac
push str.errormsgERROR_A920C_SPBOOT_r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [0x7c3a64]
jmp 0x52b4c7
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x52abbc
call fcn.0052a270
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x12]
test ecx, ecx
je 0x52ac13
cmp dword [0x7c3a60], 0
je 0x52ac13
call fcn.006684ac
mov edx, dword [0x7c3a60]
push edx
push 0x75c0b0
call fcn.0066610b
add esp, 8
call fcn.006684ac
push str.errormsgERROR_A920C_APBOOT_r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [0x7c3a60]
jmp 0x52b4c7
jmp 0x52b123
cmp dword [0x7c39ec], 0x26
jne 0x52ac75
call fcn.0052b4e0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x52ac70
call fcn.006684ac
mov eax, dword [ebp - 0x18]
push eax
push 0x75c0e0
call fcn.0066610b
add esp, 8
call fcn.006684ac
push str.errormsgERROR_D800W_APBOOT_r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x52b4c7
jmp 0x52b123
cmp dword [0x7c39ec], 0x2a
jne 0x52ade3
push 0x75c110
mov ecx, dword [ebp + 8]
push ecx
call fcn.006687b0
add esp, 8
test eax, eax
setne dl
mov byte [ebp - 0x1d], dl
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x52acbd
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0x52b600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x52acdf
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0x52a260
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x2c], eax
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
je 0x52acf6
push 0x7530
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x52ad0d
push 0x88b8
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx edx, byte [ebp - 0x1d]
test edx, edx
je 0x52ad1f
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp - 0x12]
test ecx, ecx
je 0x52ad31
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x52ad88
cmp dword [0x7c3a64], 0
je 0x52ad88
call fcn.006684ac
mov ecx, dword [0x7c3a64]
push ecx
push 0x75c11c
call fcn.0066610b
add esp, 8
call fcn.006684ac
push 0x75c12c
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [0x7c3a64]
jmp 0x52b4c7
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x52adde
cmp dword [0x7c3a60], 0
je 0x52adde
call fcn.006684ac
mov eax, dword [0x7c3a60]
push eax
push 0x75c148
call fcn.0066610b
add esp, 8
call fcn.006684ac
push 0x75c158
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [0x7c3a60]
jmp 0x52b4c7
jmp 0x52b123
cmp dword [0x7c39ec], 0x50
jne 0x52af51
push 0x75c178
mov ecx, dword [ebp + 8]
push ecx
call fcn.006687b0
add esp, 8
test eax, eax
setne dl
mov byte [ebp - 0x31], dl
movzx eax, byte [ebp - 0x31]
test eax, eax
je 0x52ae2b
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push 0x52b600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x38], eax
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x52ae4d
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0x52ba60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x40], eax
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x52ae64
push 0x7530
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x52ae7b
push 0x88b8
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx edx, byte [ebp - 0x31]
test edx, edx
je 0x52ae8d
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp - 0x12]
test ecx, ecx
je 0x52ae9f
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x31]
test eax, eax
je 0x52aef6
cmp dword [0x7c3a64], 0
je 0x52aef6
call fcn.006684ac
mov ecx, dword [0x7c3a64]
push ecx
push 0x75c184
call fcn.0066610b
add esp, 8
call fcn.006684ac
push 0x75c194
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [0x7c3a64]
jmp 0x52b4c7
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x52af4c
cmp dword [0x7c3a60], 0
je 0x52af4c
call fcn.006684ac
mov eax, dword [0x7c3a60]
push eax
push 0x75c1b0
call fcn.0066610b
add esp, 8
call fcn.006684ac
push 0x75c1c0
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [0x7c3a60]
jmp 0x52b4c7
jmp 0x52b123
cmp dword [0x7c39ec], 0x70
je 0x52af67
cmp dword [0x7c39ec], 0x7d
jne 0x52b063
push 0x75c1e0
mov ecx, dword [ebp + 8]
push ecx
call fcn.006687b0
add esp, 8
test eax, eax
setne dl
mov byte [ebp - 0x41], dl
mov byte [0x7e46d3], 0
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x52af97
call fcn.0052b610
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x41]
test ecx, ecx
je 0x52aff8
cmp dword [0x7c3a64], 0
jne 0x52afb3
movzx edx, byte [0x7e46d3]
test edx, edx
jne 0x52aff8
call fcn.006684ac
mov eax, dword [0x7c3a64]
push eax
push 0x75c1ec
call fcn.0066610b
add esp, 8
call fcn.006684ac
push str.errormsgERROR_MH_SPBOOT_r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [0x7c3a64]
jmp 0x52b4c7
movzx ecx, byte [ebp - 0x12]
test ecx, ecx
je 0x52b008
call fcn.0052ba70
mov dword [ebp - 0x10], eax
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x52b05e
cmp dword [0x7c3a60], 0
je 0x52b05e
call fcn.006684ac
mov eax, dword [0x7c3a60]
push eax
push 0x75c218
call fcn.0066610b
add esp, 8
call fcn.006684ac
push str.errormsgERROR_QFIL_APBOOT_r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [0x7c3a60]
jmp 0x52b4c7
jmp 0x52b123
cmp dword [0x7c39ec], 0x34
je 0x52b079
cmp dword [0x7c39ec], 0x44
jne 0x52b123
movzx ecx, byte [ebp - 0x12]
test ecx, ecx
je 0x52b123
mov edx, dword [0x7dde08]
push edx
push 0x75c248
call fcn.005128e0
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, dword [0x7dde08]
push eax
push 0x75c250
call fcn.005128e0
add esp, 8
mov dword [ebp - 0x54], eax
mov ecx, dword [0x7dde08]
push ecx
push 0x75c254
call fcn.005128e0
add esp, 8
mov dword [ebp - 0x50], eax
mov edx, dword [0x7dde08]
push edx
push 0x75c25c
call fcn.005128e0
add esp, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [0x7dde08]
push eax
push 0x75c264
call fcn.005128e0
add esp, 8
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.00530e00
add esp, 0x14
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x52b123
mov eax, dword [ebp - 0x58]
jmp 0x52b4c7
push str.dlboot100___r_n
call fcn.0066610b
add esp, 4
jmp 0x52b4c5
push 0x75c27c
mov eax, dword [ebp + 8]
push eax
call fcn.006687b0
add esp, 8
test eax, eax
je 0x52b2a3
push 0x75c288
push 0x75c294
call fcn.004a4410
add esp, 8
mov ecx, dword [0x7dde08]
push ecx
push str.gd32com
call fcn.005128e0
add esp, 8
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
push edx
call fcn.00666cf0
add esp, 4
test eax, eax
jne 0x52b19d
mov eax, dword [0x7dde08]
push eax
push 0x75c2a8
call fcn.005128e0
add esp, 8
mov dword [ebp - 0x64], eax
mov ecx, dword [0x7dde08]
push ecx
push 0x75c2ac
call fcn.005128e0
add esp, 8
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x78]
call fcn.00412bd0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x78]
call fcn.00412cb0
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x52b211
push 0x75c2b8
push 0x75c2c4
call fcn.004a4410
add esp, 8
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00412c80
mov eax, dword [ebp - 0x88]
jmp 0x52b4c7
lea ecx, [ebp - 0x78]
call fcn.00412f60
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x52b259
push 0x75c2d0
push 0x75c2dc
call fcn.004a4410
add esp, 8
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00412c80
mov eax, dword [ebp - 0x8c]
jmp 0x52b4c7
push 0x75c2e8
push 0x75c2f4
call fcn.004a4410
add esp, 8
mov dword [ebp - 0x90], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00412c80
mov eax, dword [ebp - 0x90]
jmp 0x52b4c7
push 0x75c300
mov eax, dword [ebp + 8]
push eax
call fcn.006687b0
add esp, 8
test eax, eax
je 0x52b3e3
push 0x75c30c
push 0x75c318
call fcn.004a4410
add esp, 8
push 4
call fcn.00576bc2
add esp, 4
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x98], 0
je 0x52b335
mov ecx, dword [0x7dde08]
push ecx
push 0x75c324
call fcn.005128e0
add esp, 4
mov ecx, esp
mov dword [ebp - 0x9c], esp
push eax
call fcn.0040dbe0
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x98]
call fcn.0046c670
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], edx
jmp 0x52b33f
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x80]
call fcn.0046c6f0
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x52b399
push 1
mov ecx, dword [ebp - 0xa0]
call fcn.00468d50
mov dword [ebp - 0xb4], eax
jmp 0x52b3a3
mov dword [ebp - 0xb4], 0
cmp dword [ebp - 0x7c], 0
je 0x52b3c5
push 0x75c330
push 0x75c33c
call fcn.004a4410
add esp, 8
mov eax, dword [ebp - 0x7c]
jmp 0x52b4c7
push str.dlmm32print
push 0x75c354
call fcn.004a4410
add esp, 8
xor eax, eax
jmp 0x52b4c7
mov dword [ebp - 0x84], 0xffffffff
call fcn.006684ac
push str.DlFastbootTaskBeforSP_r_n
call fcn.0066610b
add esp, 4
cmp dword [0x7c39ec], 0x70
je 0x52b411
cmp dword [0x7c39ec], 0x7d
jne 0x52b466
push 0x75c378
push 0x7e47e8
call fcn.00404520
add esp, 8
test eax, eax
je 0x52b466
call fcn.0052bc30
movzx ecx, al
test ecx, ecx
jne 0x52b466
call fcn.006684ac
mov edx, dword [ebp - 0x84]
push edx
push 0x75c37c
call fcn.0066610b
add esp, 8
call fcn.006684ac
push str.errormsgERROR_GET_FASTBOOTID_r_n
call fcn.0066610b
add esp, 4
mov eax, dword [ebp - 0x84]
jmp 0x52b4c7
mov eax, dword [ebp + 8]
push eax
call fcn.00529cc0
add esp, 4
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x52b4c5
call fcn.006684ac
mov ecx, dword [ebp - 0x84]
push ecx
push 0x75c3ac
call fcn.0066610b
add esp, 8
call fcn.006684ac
push str.errormsgERROR_DOWNLOAD_FIRMWARE_r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [ebp - 0x84]
jmp 0x52b4c7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret