Function at 0x404c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
sub esp, 0x7c
lea ecx, [ebp - 0x30]
call fcn.00403aa0
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
mov dword [ebp - 0x50], 0x51af3c
call fcn.00402870
test al, al
je 0x404ed0
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [str.shell_v2]
lea ecx, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004e0d80
lea eax, [ebp - 0x3c]
sub esp, 8
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call fcn.0041e410
mov byte [ebp - 0x69], al
mov eax, dword [ebp - 0x3c]
lea ebx, [eax - 0xc]
cmp ebx, 0x51af30
jne 0x405477
cmp byte [ebp - 0x69], 0
je 0x404df8
test byte [0x551030], 1
jne 0x40549c
mov edx, edi
sub edx, 1
lea ebx, [esi + 4]
mov byte [ebp - 0x60], 0x7e
mov dword [ebp - 0x68], 0
je 0x404f42
mov dword [ebp - 0x5c], edx
mov edx, ebx
jmp 0x404d1b
cmp dword [ebp - 0x5c], 1
jle 0x404f23
mov esi, dword [edx + 4]
mov edi, str.none
mov dword [ebp - 0x60], edx
mov dword [esp], esi
mov dword [ebp - 0x64], esi
call sub.msvcrt.dll_strlen
mov ecx, 5
mov edx, dword [ebp - 0x60]
cmp eax, 1
je 0x404e81
repe cmpsb byte [esi], byte es:[edi]
jne 0x404f23
mov byte [ebp - 0x60], 0
sub dword [ebp - 0x5c], 2
add edx, 8
mov edi, dword [ebp - 0x5c]
test edi, edi
je 0x404d87
mov eax, dword [edx]
mov ecx, 3
mov edi, 0x51f8b3
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
seta cl
mov esi, ecx
setb cl
mov ebx, esi
cmp bl, cl
je 0x404cd0
mov edi, 0x51f8f6
mov esi, eax
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
je 0x404e60
mov edi, 0x51f8f9
mov esi, eax
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
je 0x404e60
mov edi, 0x51f8fc
mov esi, eax
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
jne 0x404ea0
sub dword [ebp - 0x5c], 1
add edx, 4
mov edi, dword [ebp - 0x5c]
mov byte [ebp - 0x69], 0
test edi, edi
jne 0x404d1b
mov esi, dword [ebp - 0x68]
mov ebx, edx
mov edx, dword [ebp - 0x5c]
test esi, esi
je 0x404f42
cmp byte [ebp - 0x69], 1
je 0x404f42
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [str.shell_v2]
lea ecx, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004e0d80
lea eax, [ebp - 0x3c]
sub esp, 8
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call fcn.0041e410
mov edx, dword [ebp - 0x3c]
lea ebx, [edx - 0xc]
cmp ebx, 0x51af30
mov esi, eax
jne 0x405452
mov eax, esi
test al, al
jne 0x405170
mov dword [esp + 4], str.error:_target_doesnt_support_PTY_args__Tt_n
jmp 0x404f2b
test byte [0x551030], 1
je 0x404cae
call fcn.0042bec0
cmp eax, 2
jg 0x404cae
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
lea ecx, [ebp - 0x3c]
mov eax, dword [eax]
mov dword [esp + 4], str.shell_protocol_not_supported__using_raw_data_transfer
mov dword [esp], ecx
mov dword [ebp - 0x5c], eax
call fcn.0042cf00
lea eax, [ebp - 0x40]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2c3
jmp 0x4054ed
mov ecx, dword [ebp - 0x68]
add ecx, 1
cmp byte [eax + 1], 0x74
mov eax, 0xffffffff
cmovne ecx, eax
add edx, 4
mov dword [ebp - 0x68], ecx
sub dword [ebp - 0x5c], 1
jmp 0x404d14
mov esi, dword [ebp - 0x64]
repe cmpsb byte [esi], byte es:[edi]
je 0x404d09
mov esi, dword [ebp - 0x64]
movzx eax, byte [esi]
mov byte [ebp - 0x60], al
jmp 0x404d0d
mov edi, 0x51f8ff
mov esi, eax
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
jne 0x404d87
mov dword [ebp - 0x64], edx
call fcn.00415200
mov edx, dword [ebp - 0x64]
sub dword [ebp - 0x5c], 1
add edx, 4
jmp 0x404d14
mov eax, dword [ebp - 0x50]
mov ebx, 1
mov dword [esp + 4], str.error:__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00428b20
mov eax, dword [ebp - 0x50]
lea esi, [eax - 0xc]
cmp esi, 0x51af30
jne 0x405547
lea ecx, [ebp - 0x30]
call fcn.004e16e0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.005108c0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.error:__e_requires_a_single_character_argument_or_none_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebx, 1
add eax, 0x40
mov dword [esp], eax
call fcn.00428b20
jmp 0x404ef4
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [str.shell_v2]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x4c], 0x51af3c
mov dword [esp], eax
call fcn.004e0d80
lea eax, [ebp - 0x3c]
sub esp, 8
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call fcn.0041e410
mov edx, dword [ebp - 0x5c]
mov esi, eax
mov eax, dword [ebp - 0x3c]
lea ecx, [eax - 0xc]
cmp ecx, 0x51af30
jne 0x405386
mov eax, esi
test al, al
je 0x404fd0
mov ecx, dword [ebp - 0x68]
test ecx, ecx
js 0x40537e
je 0x405364
cmp dword [ebp - 0x68], 1
je 0x405297
mov dword [esp + 4], 3
lea ecx, [ebp - 0x4c]
mov dword [esp], 0x52070f
mov dword [ebp - 0x5c], edx
call fcn.004dfed0
mov edx, dword [ebp - 0x5c]
sub esp, 8
lea eax, [ebp - 0x40]
test edx, edx
mov dword [ebp - 0x48], 0x51af3c
lea esi, [ebp - 0x48]
mov dword [ebp - 0x64], eax
jne 0x40517d
movzx eax, byte [ebp - 0x69]
lea ecx, [ebp - 0x4c]
mov dword [esp], esi
mov edx, eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x44]
call fcn.00404930
lea ecx, [ebp - 0x4c]
mov dword [esp], 0x52070f
call fcn.004b7570
mov byte [ebp - 0x5c], 1
sub esp, 4
test eax, eax
je 0x40502b
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x5c], 0
mov edx, dword [eax - 0xc]
test edx, edx
je 0x40524b
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x40], 0x51af3c
mov dword [esp + 4], eax
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.00401fb0
test eax, eax
mov edi, eax
js 0x40533b
mov dword [esp], 0x14
call fcn.00510970
cmp byte [ebp - 0x69], 0
mov esi, eax
mov dword [eax + 0xc], 0
mov dword [eax], 0
mov dword [eax + 4], edi
movzx eax, byte [ebp - 0x5c]
mov byte [esi + 8], al
movzx eax, byte [ebp - 0x60]
mov byte [esi + 0x10], al
jne 0x405305
cmp byte [ebp - 0x5c], 0
jne 0x4052f5
mov dword [esp], 8
call fcn.00510970
mov dword [eax], 0x404530
mov dword [eax + 4], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4036c0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
je 0x405215
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x68]
mov eax, edi
sub esp, 4
call fcn.004036f0
cmp byte [ebp - 0x5c], 0
mov ebx, eax
jne 0x4052eb
mov eax, dword [ebp - 0x40]
lea esi, [eax - 0xc]
cmp esi, 0x51af30
jne 0x4053ff
mov eax, dword [ebp - 0x44]
lea esi, [eax - 0xc]
cmp esi, 0x51af30
jne 0x4053da
mov eax, dword [ebp - 0x48]
lea esi, [eax - 0xc]
cmp esi, 0x51af30
jne 0x4053b5
mov eax, dword [ebp - 0x4c]
lea esi, [eax - 0xc]
cmp esi, 0x51af30
je 0x404ef4
sub eax, 4
call fcn.00512638
test eax, eax
jg 0x404ef4
lea eax, [ebp - 0x3c]
mov ecx, esi
mov dword [esp], eax
call fcn.004df650
sub esp, 4
jmp 0x404ef4
mov dword [esp + 4], str.error:_PTY_args__Tt_cannot_be_used_with__x_n
jmp 0x404f2b
lea esi, [edx*4]
xor eax, eax
sar esi, 2
xor edx, edx
test esi, esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
jne 0x405271
lea edi, [eax + edx]
test esi, esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], edi
jne 0x40525c
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x3c]
mov dword [esp], eax
lea esi, [ebp - 0x48]
mov dword [ebp - 0x38], edi
mov edi, eax
mov dword [esp + 8], 0x20
mov dword [esp + 4], edx
mov dword [ebp - 0x64], eax
call fcn.004b2990
mov ecx, esi
mov dword [esp], edi
call fcn.004df8e0
mov eax, dword [ebp - 0x40]
lea ecx, [eax - 0xc]
sub esp, 4
cmp ecx, 0x51af30
jne 0x405424
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x404fe8
mov dword [esp], eax
call fcn.005108c0
jmp 0x404fe8
call fcn.0042bec0
cmp eax, 4
lea esi, [esi]
jle 0x40556c
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x405232
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 0xc], 0
mov dword [esp], esi
call fcn.005108c0
mov eax, 1
jmp 0x4050f6
mov eax, dword [ebp - 0x48]
mov eax, dword [eax - 0xc]
test eax, eax
sete byte [ebp - 0x5c]
jmp 0x40502b
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
jmp 0x4051b9
cmp esi, 0x3fffffff
ja 0x40544d
lea edx, [esi*4]
mov dword [esp], edx
mov dword [ebp - 0x5c], edx
call fcn.00510970
mov edx, dword [ebp - 0x5c]
jmp 0x4051a8
mov dword [esp], 0
mov dword [ebp - 0x5c], edx
call fcn.00426e80
mov edx, dword [ebp - 0x5c]
test eax, eax
jne 0x404fb0
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Remote_PTY_will_not_be_allocated_because_stdin_is_not_a_terminal._nUse_multiple__t_options_to_force_remote_PTY_allocation._n
add eax, 0x40
mov dword [esp], eax
call fcn.00428b20
mov dword [esp + 4], 3
lea ecx, [ebp - 0x4c]
mov dword [esp], 0x520713
call fcn.004dfed0
mov edx, dword [ebp - 0x5c]
sub esp, 8
jmp 0x404fd0
call fcn.00427000
jmp 0x405102
call fcn.00426ee0
lea esi, [esi]
jmp 0x40508e
mov dword [esp], 0x40014
call fcn.00510970
mov ebx, eax
mov eax, dword [esi + 4]
mov ecx, ebx
mov dword [esp], eax
call fcn.0040f7f0
mov ecx, dword [esi + 0xc]
mov dword [esi + 0xc], ebx
sub esp, 4
test ecx, ecx
je 0x405084
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x405084
mov eax, dword [ebp - 0x40]
mov ebx, 1
mov dword [esp + 4], str.error:__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00428b20
jmp 0x405102
mov dword [esp], 0
mov dword [ebp - 0x5c], edx
call fcn.00426e80
mov edx, dword [ebp - 0x5c]
test eax, eax
jne 0x404fd0
mov dword [ebp - 0x5c], edx
jmp 0x4052c9
sub eax, 4
mov dword [ebp - 0x64], ecx
call fcn.00512638
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x64]
test eax, eax
jg 0x404f8f
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.004df650
mov edx, dword [ebp - 0x5c]
sub esp, 4
jmp 0x404f8f
sub eax, 4
call fcn.00512638
test eax, eax
jg 0x405138
lea eax, [ebp - 0x3c]
mov ecx, esi
mov dword [esp], eax
call fcn.004df650
sub esp, 4
jmp 0x405138
sub eax, 4
call fcn.00512638
test eax, eax
jg 0x405126
lea eax, [ebp - 0x3c]
mov ecx, esi
mov dword [esp], eax
call fcn.004df650
sub esp, 4
jmp 0x405126
sub eax, 4
call fcn.00512638
test eax, eax
jg 0x405114
lea eax, [ebp - 0x3c]
mov ecx, esi
mov dword [esp], eax
call fcn.004df650
sub esp, 4
jmp 0x405114
sub eax, 4
mov dword [ebp - 0x5c], ecx
call fcn.00512638
mov ecx, dword [ebp - 0x5c]
test eax, eax
jg 0x4051fd
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.004df650
sub esp, 4
jmp 0x4051fd
call fcn.0050b040
lea eax, [edx - 4]
call fcn.00512638
test eax, eax
jg 0x404de1
lea eax, [ebp - 0x40]
mov ecx, ebx
mov dword [esp], eax
call fcn.004df650
sub esp, 4
jmp 0x404de1
sub eax, 4
call fcn.00512638
test eax, eax
jg 0x404c97
lea eax, [ebp - 0x40]
mov ecx, ebx
mov dword [esp], eax
call fcn.004df650
sub esp, 4
jmp 0x404c97
call fcn.0042bec0
cmp eax, 2
jg 0x404cae
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
lea ecx, [ebp - 0x3c]
mov eax, dword [eax]
mov dword [esp + 4], str.using_shell_protocol
mov dword [esp], ecx
mov dword [ebp - 0x5c], eax
call fcn.0042cf00
lea eax, [ebp - 0x40]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2c5
mov ecx, eax
mov dword [esp], str.system_core_adb_commandline.cpp
mov dword [ebp - 0x64], eax
call fcn.0042bf90
mov ecx, dword [ebp - 0x64]
sub esp, 0x14
call fcn.0042c110
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.0050a5a0
mov ecx, dword [ebp - 0x64]
call fcn.0042c1a0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x3c]
mov dword [esp], eax
sub ecx, 0xc
call fcn.004df670
sub esp, 4
call ebx
mov edx, dword [ebp - 0x5c]
mov dword [eax], edx
jmp 0x404cae
sub eax, 4
call fcn.00512638
test eax, eax
jg 0x404f06
lea eax, [ebp - 0x3c]
mov ecx, esi
mov dword [esp], eax
call fcn.004df650
sub esp, 4
jmp 0x404f06
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov edi, dword [eax]
call ebx
lea ecx, [ebp - 0x3c]
mov eax, dword [eax]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2a9
mov dword [esp + 0x10], eax
mov dword [esp], str.system_core_adb_commandline.cpp
call fcn.0042bf90
lea ecx, [ebp - 0x3c]
sub esp, 0x14
call fcn.0042c110
mov dword [esp + 4], str.error_starting_stdin_read_thread
mov dword [esp], eax
call fcn.0050e2b0
lea ecx, [ebp - 0x3c]
call fcn.0042c1a0
call ebx
mov dword [eax], edi
jmp 0x405226