Function at 0x470540
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4f06
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x15d], 0
mov dword [ebp - 0x158], 0
jmp 0x470597
mov eax, dword [ebp - 0x158]
add eax, 1
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 9
jae 0x4705c1
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.00470c90
add esp, 4
movzx edx, al
test edx, edx
je 0x4705bf
mov byte [ebp - 0x15d], 1
jmp 0x4705c1
jmp 0x470588
movzx eax, byte [ebp - 0x15d]
test eax, eax
jne 0x4705d3
xor eax, eax
jmp 0x470c6b
push str.begin_mtk_tool_task_n
call fcn.0066610b
add esp, 4
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 0x15d]
mov byte [ecx], dl
mov byte [ebp - 0x154], 0
push 0x103
push 0
lea eax, [ebp - 0x153]
push eax
call fcn.006665c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x154]
push ecx
call fcn.0049f360
add esp, 8
push 0x701991
push 0x70361c
call fcn.005128e0
add esp, 8
push eax
call fcn.00666b8d
add esp, 4
mov dword [ebp - 0x318], eax
push 1
push 3
lea ecx, [ebp - 0x314]
call fcn.00470ce0
mov dword [ebp - 4], 0
push 0
push 0
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 4]
lea ecx, [ebp + eax - 0x314]
call fcn.00406c30
push 7
call fcn.00470c90
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x470799
push 0x701992
push 0x703620
call fcn.005128e0
add esp, 8
push eax
call fcn.0046ff30
add esp, 4
cmp eax, 0xffffffff
jne 0x4706c8
mov dword [ebp - 0x31c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x314]
call fcn.004043b0
mov eax, dword [ebp - 0x31c]
jmp 0x470c6b
lea edx, [ebp - 0x314]
test edx, edx
je 0x4706e3
lea eax, [ebp - 0x314]
add eax, 0x10
mov dword [ebp - 0x328], eax
jmp 0x4706ed
mov dword [ebp - 0x328], 0
push str._binMTKSP_MDT_exeSPMultiPortFlashDownloadProject.exe
lea ecx, [ebp - 0x154]
push ecx
mov edx, dword [ebp - 0x328]
push edx
call fcn.0040a270
add esp, 8
push eax
call fcn.0040a270
add esp, 8
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x314]
call fcn.004055d0
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x32c]
mov dword [ebp - 0x330], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x330]
call fcn.00404810
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404770
push 0x70365c
call fcn.0066610b
add esp, 4
push 0x70366c
call fcn.0066610b
add esp, 4
mov dword [ebp - 0x320], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x314]
call fcn.004043b0
mov eax, dword [ebp - 0x320]
jmp 0x470c6b
lea edx, [ebp - 0x314]
test edx, edx
je 0x4707b4
lea eax, [ebp - 0x314]
add eax, 0x10
mov dword [ebp - 0x334], eax
jmp 0x4707be
mov dword [ebp - 0x334], 0
push str._binMTKMTKSNWriterSN_Writer.exe
lea ecx, [ebp - 0x154]
push ecx
mov edx, dword [ebp - 0x334]
push edx
call fcn.0040a270
add esp, 8
push eax
call fcn.0040a270
add esp, 8
mov byte [ebp - 0x26c], 0
push 0x103
push 0
lea eax, [ebp - 0x26b]
push eax
call fcn.006665c0
add esp, 0xc
push 0x70369c
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00666ba0
add esp, 8
push 0
call fcn.00470c90
add esp, 4
movzx edx, al
test edx, edx
je 0x47088d
lea eax, [ebp - 0x314]
test eax, eax
je 0x47083f
lea ecx, [ebp - 0x314]
add ecx, 0x10
mov dword [ebp - 0x338], ecx
jmp 0x470849
mov dword [ebp - 0x338], 0
push 0x701993
push 0x7036a4
call fcn.005128e0
add esp, 8
push eax
push 0x7036a8
mov edx, dword [ebp - 0x338]
push edx
call fcn.0040a270
add esp, 8
push eax
call fcn.0040a270
add esp, 8
push str.setsn_
lea eax, [ebp - 0x26c]
push eax
call fcn.00666bb0
add esp, 8
push 1
call fcn.00470c90
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x470907
lea edx, [ebp - 0x314]
test edx, edx
je 0x4708b9
lea eax, [ebp - 0x314]
add eax, 0x10
mov dword [ebp - 0x33c], eax
jmp 0x4708c3
mov dword [ebp - 0x33c], 0
push 0x7019a9
push 0x7036b8
call fcn.005128e0
add esp, 8
push eax
push str._btmac
mov ecx, dword [ebp - 0x33c]
push ecx
call fcn.0040a270
add esp, 8
push eax
call fcn.0040a270
add esp, 8
push str.setbtmac_
lea edx, [ebp - 0x26c]
push edx
call fcn.00666bb0
add esp, 8
push 2
call fcn.00470c90
add esp, 4
movzx eax, al
test eax, eax
je 0x470981
lea ecx, [ebp - 0x314]
test ecx, ecx
je 0x470933
lea edx, [ebp - 0x314]
add edx, 0x10
mov dword [ebp - 0x340], edx
jmp 0x47093d
mov dword [ebp - 0x340], 0
push 0x7019aa
push 0x7036d4
call fcn.005128e0
add esp, 8
push eax
push str._wifimac
mov eax, dword [ebp - 0x340]
push eax
call fcn.0040a270
add esp, 8
push eax
call fcn.0040a270
add esp, 8
push str.setwifimac_
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00666bb0
add esp, 8
push 3
call fcn.00470c90
add esp, 4
movzx edx, al
test edx, edx
je 0x4709fb
lea eax, [ebp - 0x314]
test eax, eax
je 0x4709ad
lea ecx, [ebp - 0x314]
add ecx, 0x10
mov dword [ebp - 0x344], ecx
jmp 0x4709b7
mov dword [ebp - 0x344], 0
push 0x7019ab
push 0x7036f4
call fcn.005128e0
add esp, 8
push eax
push str._imei
mov edx, dword [ebp - 0x344]
push edx
call fcn.0040a270
add esp, 8
push eax
call fcn.0040a270
add esp, 8
push str.setimei_
lea eax, [ebp - 0x26c]
push eax
call fcn.00666bb0
add esp, 8
push 4
call fcn.00470c90
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x470a75
lea edx, [ebp - 0x314]
test edx, edx
je 0x470a27
lea eax, [ebp - 0x314]
add eax, 0x10
mov dword [ebp - 0x348], eax
jmp 0x470a31
mov dword [ebp - 0x348], 0
push 0x7019c2
push 0x703710
call fcn.005128e0
add esp, 8
push eax
push str._imei2
mov ecx, dword [ebp - 0x348]
push ecx
call fcn.0040a270
add esp, 8
push eax
call fcn.0040a270
add esp, 8
push str.setimei2_
lea edx, [ebp - 0x26c]
push edx
call fcn.00666bb0
add esp, 8
push 8
call fcn.00470c90
add esp, 4
movzx eax, al
test eax, eax
je 0x470aef
lea ecx, [ebp - 0x314]
test ecx, ecx
je 0x470aa1
lea edx, [ebp - 0x314]
add edx, 0x10
mov dword [ebp - 0x34c], edx
jmp 0x470aab
mov dword [ebp - 0x34c], 0
push 0x7019c3
push 0x70372c
call fcn.005128e0
add esp, 8
push eax
push str._pn
mov eax, dword [ebp - 0x34c]
push eax
call fcn.0040a270
add esp, 8
push eax
call fcn.0040a270
add esp, 8
push str.setpn_
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00666bb0
add esp, 8
push 5
call fcn.00470c90
add esp, 4
movzx edx, al
test edx, edx
je 0x470b69
lea eax, [ebp - 0x314]
test eax, eax
je 0x470b1b
lea ecx, [ebp - 0x314]
add ecx, 0x10
mov dword [ebp - 0x350], ecx
jmp 0x470b25
mov dword [ebp - 0x350], 0
push 0x7019df
push str.keybox
call fcn.005128e0
add esp, 8
push eax
push str._keybox
mov edx, dword [ebp - 0x350]
push edx
call fcn.0040a270
add esp, 8
push eax
call fcn.0040a270
add esp, 8
push str.setkeybox_
lea eax, [ebp - 0x26c]
push eax
call fcn.00666bb0
add esp, 8
push 6
call fcn.00470c90
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x470b8e
push str.getexsn_
lea edx, [ebp - 0x26c]
push edx
call fcn.00666bb0
add esp, 8
lea eax, [ebp - 0x26c]
push eax
call fcn.00666cf0
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
mov byte [ebp + ecx - 0x26d], 0
lea edx, [ebp - 0x314]
test edx, edx
je 0x470bcc
lea eax, [ebp - 0x314]
add eax, 0x10
mov dword [ebp - 0x354], eax
jmp 0x470bd6
mov dword [ebp - 0x354], 0
push 0
lea ecx, [ebp - 0x26c]
push ecx
push 0x70376c
mov edx, dword [ebp - 0x354]
push edx
call fcn.0040a270
add esp, 8
push eax
call fcn.0040a270
add esp, 8
push eax
call fcn.00470e20
add esp, 8
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x314]
call fcn.004055d0
mov dword [ebp - 0x358], eax
mov ecx, dword [ebp - 0x358]
mov dword [ebp - 0x35c], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x35c]
call fcn.00404810
push eax
call fcn.0046fab0
add esp, 4
movzx edx, al
mov dword [ebp - 0x324], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x314]
call fcn.004043b0
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret