Function at 0x4355a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x44], 0
je 0x4358ab
xor ebx, ebx
mov esi, 0
xor edi, edi
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
mov dword [esp], 0
jmp 0x435860
mov ecx, dword [esp + 4]
mov edx, dword [eax + 0xc]
movzx eax, word [ebp + 4]
cmp dword [esp + 0x18], ecx
je 0x435610
movzx eax, ax
mov dword [ecx], edx
mov dword [ecx + 4], eax
add ecx, 8
mov dword [esp + 4], ecx
jmp 0x4356e0
sub ecx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov word [esp + 0x22], ax
mov edx, ecx
mov dword [esp + 4], ecx
sar edx, 3
test ecx, ecx
mov ecx, 1
mov eax, edx
mov dword [esp + 0x18], edx
cmove eax, ecx
mov ecx, 0x1fffffff
lea edi, [eax + edx]
cmp edi, 0x1fffffff
cmova edi, ecx
add eax, edx
mov eax, 0x1fffffff
cmovb edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x435679
cmp edi, 0x20000000
jae 0x435986
lea eax, [edi*8]
push eax
call fcn.00564040
add esp, 4
mov ecx, eax
jmp 0x43567b
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
movzx edi, word [esp + 0x22]
cmp dword [esp + 4], 0
mov dword [esp + 0x10], ecx
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + edx*8 + 4], edi
je 0x4356b4
push dword [esp + 4]
push eax
push ecx
mov dword [esp + 0x18], eax
call sub.msvcrt.dll_memmove
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x4356c1
push eax
call fcn.00563f90
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea eax, [ecx + eax*8 + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
lea eax, [ecx + eax*8]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 8]
cmp dword [esp + 0x1c], edi
je 0x4356f4
mov dword [edi], ebp
add edi, 4
jmp 0x43589f
sub edi, dword [esp]
mov ecx, 1
mov edx, edi
mov dword [esp + 8], edi
sar edx, 2
test edi, edi
mov eax, edx
mov dword [esp + 0x14], edx
cmove eax, ecx
mov ecx, 0x3fffffff
lea edi, [eax + edx]
cmp edi, 0x3fffffff
cmova edi, ecx
add eax, edx
cmovb edi, ecx
test edi, edi
je 0x43574a
cmp edi, 0x40000000
jae 0x435986
lea eax, [edi*4]
push eax
call fcn.00564040
add esp, 4
mov ecx, eax
jmp 0x43574c
xor ecx, ecx
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp]
test eax, eax
mov dword [ecx + edi*4], ebp
je 0x43577d
push eax
push edx
push ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_memmove
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea edi, [ecx + edi*4 + 4]
test edx, edx
je 0x43579a
push edx
mov dword [esp + 0xc], edi
mov edi, ecx
call fcn.00563f90
mov ecx, edi
mov edi, dword [esp + 0xc]
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
jmp 0x43589f
call fcn.004ce330
cmp eax, 1
jg 0x435894
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ecx, [esp + 0x28]
mov ecx, ecx
mov dword [esp + 0x14], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x241
push str.system_core_adb_sysdeps_win32.cpp
call fcn.004ce350
lea ecx, [esp + 0x28]
call fcn.004ce340
mov dword [esp + 0x10], eax
push dword [ebp]
push str.adb_poll_received_bad_FD__d
lea eax, [esp + 0x2c]
push eax
call fcn.004cf170
add esp, 0xc
mov eax, dword [esp + 0x24]
push dword [eax - 0xc]
push eax
push dword [esp + 0x18]
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x435840
lea ecx, [esp + 0x28]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
jmp 0x435894
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x435829
lea eax, [esp + 0x20]
push eax
call fcn.00533980
jmp 0x435829
mov ecx, dword [ebp]
mov edx, str.adb_poll
mov dword [esp + 8], edi
call fcn.004351f0
test eax, eax
je 0x435887
cmp dword [eax + 4], 0
je 0x435887
cmp dword [eax], 0x57887c
je 0x4355eb
cmp byte [0x5ac048], 0
js 0x4357ad
mov edi, dword [esp + 8]
mov word [ebp + 6], 4
inc esi
inc ebx
add ebp, 8
cmp ebx, dword [esp + 0x44]
jb 0x435860
jmp 0x4358c4
xor esi, esi
mov dword [esp], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 4]
cmp ebx, ebp
je 0x43593f
xor eax, eax
test esi, esi
cmovle eax, dword [esp + 0x48]
sub ebp, ebx
mov esi, ebp
sar esi, 3
push eax
push esi
push ebx
call sub.WS2_32.dll_WSAPoll
cmp eax, 0xffffffff
mov eax, ebp
mov ebp, dword [esp]
je 0x435966
test eax, eax
je 0x435912
xor eax, eax
nop dword [eax + eax]
movzx ecx, word [ebx + eax*8 + 6]
mov edx, dword [ebp + eax*4]
inc eax
cmp eax, esi
mov word [edx + 6], cx
jb 0x435900
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
test ecx, ecx
je 0x43597e
add eax, 6
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax]
cmp word [eax], 1
sbb esi, 0xffffffff
add eax, 8
dec ecx
jne 0x435930
jmp 0x435942
mov ebp, dword [esp]
test ebp, ebp
je 0x43594f
push ebp
call fcn.00563f90
add esp, 4
test ebx, ebx
je 0x43595c
push ebx
call fcn.00563f90
add esp, 4
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.00435990
mov esi, 0xffffffff
test ebp, ebp
jne 0x435946
jmp 0x43594f
xor esi, esi
test ebp, ebp
jne 0x435946
jmp 0x43594f
call fcn.0055dfc0
nop dword [eax + eax]